throws Exception
{
Result result = new Result();
Class<?>[] realClasses = new Class[]{ Dummy.class, Dummy2.class };
DiagnosticRunListener diagnosticRunListener = new DiagnosticRunListener( false, result.createListener() );
JUnitCore jUnitCore = getJunitCore( diagnosticRunListener );
ConfigurableParallelComputer computer = new ConfigurableParallelComputer( true, false );
jUnitCore.run( computer, realClasses );
computer.close();
assertEquals( "All tests should succeed, right ?", 5, result.getRunCount() );