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?
Description
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?
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!
Looks like it's output from a testXXX method. An empty testXXX() also outputs a "."