Search in sources :

Example 1 with TestDecorator

use of junit.extensions.TestDecorator in project junit4 by junit-team.

the class JUnit38ClassRunnerTest method plansDecoratorCorrectly.

@Test
public void plansDecoratorCorrectly() {
    JUnit38ClassRunner runner = new JUnit38ClassRunner(new TestDecorator(new TestSuite(MyTest.class)));
    assertEquals(1, runner.testCount());
}
Also used : TestSuite(junit.framework.TestSuite) JUnit38ClassRunner(org.junit.internal.runners.JUnit38ClassRunner) TestDecorator(junit.extensions.TestDecorator) Test(org.junit.Test)

Aggregations

TestDecorator (junit.extensions.TestDecorator)1 TestSuite (junit.framework.TestSuite)1 Test (org.junit.Test)1 JUnit38ClassRunner (org.junit.internal.runners.JUnit38ClassRunner)1