@Test public void testReady() { Model mo = new DefaultModel(); List<VM> vms = Util.newVMs(mo, 5); List<Ready> c = Ready.newReady(vms); Assert.assertEquals(vms.size(), c.size()); c.stream().forEach((q) -> { Assert.assertTrue(vms.containsAll(q.getInvolvedVMs())); Assert.assertFalse(q.isContinuous()); }); }
public Ready(VM vm) { super(false); this.vm = vm; }
Ready extends SimpleConstraint { public Ready(VM vm) { super(false); this.vm = vm; } }
Ready extends SimpleConstraint { public Ready(VM vm) { super(false); this.vm = vm; } Ready(VM vm); }
Ready extends SimpleConstraint { public Ready(VM vm) { super(false); this.vm = vm; } Ready(VM vm); @Override ReadyChecker getChecker(); @Override String toString(); @Override boolean equals(Object o); @Override boolean setContinuous(boolean b); @Override int hashCode(); @Override Collection<VM> getInvolvedVMs(); static List<Ready> newReady(Collection<VM> vms); static List<Ready> newReady(VM... vms); }
Ready extends SimpleConstraint { public Ready(VM vm) { super(false); this.vm = vm; } Ready(VM vm); @Override ReadyChecker getChecker(); @Override String toString(); @Override boolean equals(Object o); @Override boolean setContinuous(boolean b); @Override int hashCode(); @Override Collection<VM> getInvolvedVMs(); static List<Ready> newReady(Collection<VM> vms); static List<Ready> newReady(VM... vms);  }