Java 类org.junit.tests.TestSystem 实例源码

项目:sosiefier    文件:TextListenerTest.java   
@Override
public void setUp() {
    runner = new JUnitCore();
    TestSystem system = new TestSystem();
    results = system.outContents();
    runner.addListener(new TextListener(system));
}
项目:sosiefier    文件:JUnitCoreTest.java   
@Test
public void shouldAddFailuresToResult() {
    JUnitCore jUnitCore = new JUnitCore();

    Result result = jUnitCore.runMain(new TestSystem(), "NonExistentTest");

    assertThat(result.getFailureCount(), is(1));
    assertThat(result.getFailures().get(0).getException(), instanceOf(IllegalArgumentException.class));
}
项目:junit    文件:TextListenerTest.java   
@Override
public void setUp() {
    runner = new JUnitCore();
    TestSystem system = new TestSystem();
    results = system.outContents();
    runner.addListener(new TextListener(system));
}
项目:health-and-care-developer-network    文件:TextListenerTest.java   
@Override
public void setUp() {
    runner = new JUnitCore();
    TestSystem system = new TestSystem();
    results = system.outContents();
    runner.addListener(new TextListener(system));
}
项目:sosiefier    文件:FilterOptionIntegrationTest.java   
private Result runJUnit(final String... args) {
    return jUnitCore.runMain(new TestSystem(), args);
}