Package org.junit.internal.runners

Examples of org.junit.internal.runners.OldTestClassRunner$OldTestClassAdaptingListener


     
    }
  }
 
  @Test public void plansDecoratorCorrectly() {
    OldTestClassRunner runner= new OldTestClassRunner(new TestDecorator(new TestSuite(MyTest.class)));
    assertEquals(1, runner.testCount());
  }
View Full Code Here


      Assert.fail();
    }
  }
 
  @Test public void canUnadaptAnAdapter() {
    OldTestClassRunner runner= new OldTestClassRunner(new JUnit4TestAdapter(AnnotatedTest.class));
    Result result= new JUnitCore().run(runner);
    Failure failure= result.getFailures().get(0);
    assertEquals(Description.createTestDescription(AnnotatedTest.class, "foo"), failure.getDescription());
  }
View Full Code Here

   * Run all the tests contained in JUnit 3.8.x <code>test</code>. Here for backward compatibility.
   * @param test the old-style test
   * @return a <code>Result</code> describing the details of the test run and the failed tests.
   */
  public Result run(junit.framework.Test test) {
    return run(new OldTestClassRunner(test));
  }
View Full Code Here

   * Run all the tests contained in JUnit 3.8.x <code>test</code>. Here for backward compatibility.
   * @param test the old-style test
   * @return a <code>Result</code> describing the details of the test run and the failed tests.
   */
  public Result run(junit.framework.Test test) {
    return run(new OldTestClassRunner(test));
  }
View Full Code Here

   * Run all the tests contained in JUnit 3.8.x <code>test</code>. Here for backward compatibility.
   * @param test the old-style test
   * @return a {@link Result} describing the details of the test run and the failed tests.
   */
  public Result run(junit.framework.Test test) {
    return run(new OldTestClassRunner(test));
  }
View Full Code Here

TOP

Related Classes of org.junit.internal.runners.OldTestClassRunner$OldTestClassAdaptingListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.