@Test public void testsWithoutChildrenShouldAlsoBeRun() { ParallelComputerBuilder parallelComputerBuilder = new ParallelComputerBuilder( LOGGER ); ParallelComputerBuilder.PC computer = (ParallelComputerBuilder.PC) parallelComputerBuilder.buildComputer(); Result result = new JUnitCore().run( computer, TestWithoutPrecalculatedChildren.class ); assertThat( result.getRunCount(), is( 1 ) ); }
public ParallelComputer buildComputer() { return new PC(); }
ParallelComputerBuilder { public ParallelComputer buildComputer() { return new PC(); } }
ParallelComputerBuilder { public ParallelComputer buildComputer() { return new PC(); } ParallelComputerBuilder( ConsoleStream logger );  ParallelComputerBuilder( ConsoleStream logger, JUnitCoreParameters parameters ); }
ParallelComputerBuilder { public ParallelComputer buildComputer() { return new PC(); } ParallelComputerBuilder( ConsoleStream logger );  ParallelComputerBuilder( ConsoleStream logger, JUnitCoreParameters parameters ); ParallelComputer buildComputer(); }
ParallelComputerBuilder { public ParallelComputer buildComputer() { return new PC(); } ParallelComputerBuilder( ConsoleStream logger );  ParallelComputerBuilder( ConsoleStream logger, JUnitCoreParameters parameters ); ParallelComputer buildComputer();  }