Issue Details (XML | Word | Printable)

Key: GROOVY-1463
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Guillaume Laforge
Reporter: Jeff Wild
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
groovy

println prepends erroneous "." to result of Class#getSimpleName()

Created: 16/Aug/06 01:21 PM   Updated: 19/Aug/06 10:13 AM   Resolved: 17/Aug/06 12:35 AM
Return to search
Component/s: None
Affects Version/s: 1.0-JSR-6
Fix Version/s: 1.0-RC-1

Time Tracking:
Not Specified

File Attachments: 1. File PrinlnTest.groovy (0.3 kB)

Environment: Groovy Version: 1.0-JSR-06 JVM: 1.5.0_06-b05

Testcase included: yes


 Description  « Hide

Result of this test:

class DbServiceTest extends GroovyTestCase {
void testSomething() { def name = GroovyTestCase.class.simpleName assertEquals(GroovyTestCase.class.simpleName, name) assertTrue(name.length() == "GroovyTestCase".length()) println name println name }
}

is:

.GroovyTestCase
GroovyTestCase

Time: 0.016

OK (1 test)

Where is the period coming from?



Jeff Wild added a comment - 16/Aug/06 04:36 PM

Looks like it's output from a testXXX method. An empty testXXX() also outputs a "."


Guillaume Laforge made changes - 17/Aug/06 12:35 AM
Field Original Value New Value
Fix Version/s 1.0-RC-1 [ 12104 ]
Resolution Won't Fix [ 2 ]
Status Open [ 1 ] Closed [ 6 ]
Russel Winder added a comment - 19/Aug/06 10:13 AM

The . is output from JUnit and is expected which is why Guillaume closed this issue and marked it `won't fix' – there is nothing to fix!