properties.setProperty( PARALLEL_KEY, "suitesAndMethods" );
properties.setProperty( THREADCOUNT_KEY, "3" );
// % percentage ratio
properties.setProperty( THREADCOUNTSUITES_KEY, "34" );
properties.setProperty( THREADCOUNTMETHODS_KEY, "66" );
JUnitCoreParameters params = new JUnitCoreParameters( properties );
Concurrency concurrency = resolveConcurrency( params, null );
assertTrue( params.isParallelSuites() );
assertFalse( params.isParallelClasses() );
assertTrue( params.isParallelMethods() );
assertThat( concurrency.capacity, is( 3 * cpu ) );
int concurrentSuites = (int) ( 0.34d * concurrency.capacity );
assertThat( concurrency.suites, is( concurrentSuites ) );
assertThat( concurrency.classes, is( 0 ) );
assertThat( concurrency.methods, is( concurrency.capacity - concurrentSuites ) );