suite()
@RunWith(AllTests.class) public class ProductTests { public static junit.framework.Test suite() { ... } }
3940414243444546
assertTrue(run); } @org.junit.Test public void correctTestCount() throws Throwable { AllTests tests = new AllTests(All.class); assertEquals(1, tests.testCount()); }
4546474849505152
assertEquals(1, tests.testCount()); } @org.junit.Test public void someUsefulDescription() throws Throwable { AllTests tests = new AllTests(All.class); assertThat(tests.getDescription().toString(), containsString("OneTest")); }
6768697071727374
} } @org.junit.Test public void correctTestCountAdapted() throws Throwable { AllTests tests = new AllTests(AllJUnit4.class); assertEquals(1, tests.testCount()); }
80818283848586
} } @org.junit.Test(expected = RuntimeException.class) public void exceptionThrownWhenSuiteIsBad() throws Throwable { new AllTests(BadSuiteMethod.class); }
3435363738394041
runner.run(All.class); assertTrue(run); } @org.junit.Test public void correctTestCount() throws Throwable { AllTests tests= new AllTests(All.class); assertEquals(1, tests.testCount()); }
5455565758596061
return suite; } } @org.junit.Test public void correctTestCountAdapted() throws Throwable { AllTests tests= new AllTests(AllJUnit4.class); assertEquals(1, tests.testCount()); }
3637383940414243
4142434445464748
AllTests tests= new AllTests(All.class); assertEquals(1, tests.testCount()); } @org.junit.Test public void someUsefulDescription() throws Throwable { AllTests tests= new AllTests(All.class); assertThat(tests.getDescription().toString(), containsString("OneTest")); }
6162636465666768
74757677787980
} } @org.junit.Test(expected= RuntimeException.class) public void exceptionThrownWhenSuiteIsBad() throws Throwable { new AllTests(BadSuiteMethod.class); }