From: David S. <ds...@us...> - 2006-03-10 00:52:19
|
Update of /cvsroot/junit/junit/org/junit/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1356/org/junit/tests Modified Files: RunWithTest.java Log Message: Patched javadoc, thanks to Matthias Schmidt RunWith is @Inherited Added acknowledgements to-do is up to date Index: RunWithTest.java =================================================================== RCS file: /cvsroot/junit/junit/org/junit/tests/RunWithTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- RunWithTest.java 15 Feb 2006 22:55:29 -0000 1.2 +++ RunWithTest.java 10 Mar 2006 00:52:15 -0000 1.3 @@ -48,6 +48,17 @@ assertTrue(log.contains("initialize")); assertTrue(log.contains("run")); } + + public static class SubExampleTest extends ExampleTest { + } + + @Test public void runWithExtendsToSubclasses() { + log= ""; + + JUnitCore.runClasses(SubExampleTest.class); + assertTrue(log.contains("run")); + } + public static junit.framework.Test suite() { return new JUnit4TestAdapter(RunWithTest.class); |