package com.mycompany.app; import junit.framework.*; import junit.extensions.TestSetup; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new AppTestSetup(new TestSuite( AppTest.class )); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } public static class AppTestSetup extends TestSetup { public AppTestSetup(Test test) { super(test); } public String getName() { return "setup"; } public void setUp() { throw new RuntimeException("urk!"); } } }