}
static ParallelComputer createParallelComputer( JUnitCoreParameters params ) throws TestSetFailedException
{
Concurrency concurrency = resolveConcurrency( params );
ParallelComputerBuilder builder = new ParallelComputerBuilder();
if ( params.isParallelSuites() )
{
resolveSuitesConcurrency( builder, concurrency.suites );
}
if ( params.isParallelClasses() )
{
resolveClassesConcurrency( builder, concurrency.classes );
}
if ( params.isParallelMethod() )
{
resolveMethodsConcurrency( builder, concurrency.methods );
}
resolveCapacity( builder, concurrency.capacity );
return builder.buildComputer();
}