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