use of org.btrplace.model.Model in project scheduler by btrplace.
the class BtrpNumberTest method testNonViableAddition.
@Test(expectedExceptions = { UnsupportedOperationException.class })
public void testNonViableAddition() {
BtrpNumber i = new BtrpNumber(5, BtrpNumber.Base.BASE_16);
Model mo = new DefaultModel();
BtrpElement j = new BtrpElement(BtrpOperand.Type.VM, "foo", mo.newVM());
i.plus(j);
}
use of org.btrplace.model.Model in project scheduler by btrplace.
the class BtrpNumberTest method testNonViableGeq.
@Test(expectedExceptions = { UnsupportedOperationException.class })
public void testNonViableGeq() {
BtrpNumber i = new BtrpNumber(5, BtrpNumber.Base.BASE_16);
Model mo = new DefaultModel();
BtrpElement j = new BtrpElement(BtrpOperand.Type.VM, "foo", mo.newVM());
i.remainder(j);
}
use of org.btrplace.model.Model in project scheduler by btrplace.
the class BtrpNumberTest method testNonViablePower.
@Test(expectedExceptions = { UnsupportedOperationException.class })
public void testNonViablePower() {
BtrpNumber i = new BtrpNumber(5, BtrpNumber.Base.BASE_16);
Model mo = new DefaultModel();
BtrpElement j = new BtrpElement(BtrpOperand.Type.VM, "foo", mo.newVM());
i.power(j);
}
use of org.btrplace.model.Model in project scheduler by btrplace.
the class BtrpSetTest method testNonViableDivCauseType.
@Test(expectedExceptions = { UnsupportedOperationException.class })
public void testNonViableDivCauseType() {
BtrpSet s = new BtrpSet(1, BtrpOperand.Type.NUMBER);
Model mo = new DefaultModel();
s.div(new BtrpElement(BtrpOperand.Type.VM, "V", mo.newVM()));
}
use of org.btrplace.model.Model in project scheduler by btrplace.
the class BtrpSetTest method testNonViableRemainderCauseType.
@Test(expectedExceptions = { UnsupportedOperationException.class })
public void testNonViableRemainderCauseType() {
BtrpSet s = new BtrpSet(1, BtrpOperand.Type.NUMBER);
Model mo = new DefaultModel();
s.remainder(new BtrpElement(BtrpOperand.Type.VM, "V", mo.newVM()));
}
Aggregations