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