use of org.btrplace.scheduler.choco.ChocoScheduler in project scheduler by btrplace.
the class FixedSizePartitioningTest method basicTesting.
@Test
public void basicTesting() {
FixedSizePartitioning f = new FixedSizePartitioning(1000);
f.setWorkersCount(5);
Assert.assertEquals(f.getWorkersCount(), 5);
Assert.assertEquals(f.getSize(), 1000);
ChocoScheduler cra = new DefaultChocoScheduler();
cra.setInstanceSolver(f);
Assert.assertEquals(cra.getInstanceSolver(), f);
f.setSize(300);
Assert.assertEquals(f.getSize(), 300);
Assert.assertEquals(f.randomPickUp(), false);
}
Aggregations