FileDocCategorySizeDatePackage
JUnitVersionHelperTest.javaAPI DocApache Ant 1.702741Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs.optional.junit

JUnitVersionHelperTest

public class JUnitVersionHelperTest extends TestCase

Fields Summary
Constructors Summary
public JUnitVersionHelperTest(String name)

        super(name);
    
Methods Summary
public voidtestMyOwnName()

        assertEquals("testMyOwnName",
                     JUnitVersionHelper.getTestCaseName(this));
    
public voidtestNameNotGetName()

        assertEquals("I'm a foo, too",
                     JUnitVersionHelper.getTestCaseName(new Foo4()));
    
public voidtestNoGetName()

        assertEquals("unknown",
                     JUnitVersionHelper.getTestCaseName(new Foo3()));
    
public voidtestNoStringReturn()

        assertEquals("unknown",
                     JUnitVersionHelper.getTestCaseName(new Foo2()));
    
public voidtestNonTestCaseName()

        assertEquals("I'm a foo",
                     JUnitVersionHelper.getTestCaseName(new Foo1()));
    
public voidtestNull()

        assertEquals("unknown", JUnitVersionHelper.getTestCaseName(null));
    
public voidtestTestCaseSubClass()

        assertEquals("overridden getName",
                     JUnitVersionHelper.getTestCaseName(new Foo5()));