use of org.ow2.proactive.resourcemanager.selection.statistics.ProbablisticSelectionManager in project scheduling by ow2-proactive.
the class ProbabilisticSelectionManagerTest method testSelectNodesWithNoNodes.
@Test
public void testSelectNodesWithNoNodes() {
RMCore rmCore = SelectionManagerTest.newMockedRMCore();
SelectionManager selectionManager = new ProbablisticSelectionManager(rmCore);
Criteria crit = new Criteria(1);
crit.setTopology(TopologyDescriptor.ARBITRARY);
crit.setScripts(null);
crit.setBlackList(null);
crit.setBestEffort(false);
NodeSet nodeSet = selectionManager.selectNodes(crit, null);
assertEquals(0, nodeSet.size());
}
Aggregations