Search in sources :

Example 1 with ProbablisticSelectionManager

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());
}
Also used : RMCore(org.ow2.proactive.resourcemanager.core.RMCore) NodeSet(org.ow2.proactive.utils.NodeSet) SelectionManager(org.ow2.proactive.resourcemanager.selection.SelectionManager) Criteria(org.ow2.proactive.utils.Criteria) SelectionManagerTest(org.ow2.proactive.resourcemanager.selection.SelectionManagerTest) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 RMCore (org.ow2.proactive.resourcemanager.core.RMCore)1 SelectionManager (org.ow2.proactive.resourcemanager.selection.SelectionManager)1 SelectionManagerTest (org.ow2.proactive.resourcemanager.selection.SelectionManagerTest)1 Criteria (org.ow2.proactive.utils.Criteria)1 NodeSet (org.ow2.proactive.utils.NodeSet)1