@Test public void moveFactMappingOldFailTest() { ExpressionIdentifier expressionIdentifier2 = ExpressionIdentifier.create("Test expression 2", FactMappingType.GIVEN); simulationDescriptor.addFactMapping(factIdentifier, expressionIdentifier); simulationDescriptor.addFactMapping(factIdentifier, expressionIdentifier2); muteException(() -> { simulationDescriptor.moveFactMapping(2, 0); fail(); }, IllegalArgumentException.class); muteException(() -> { simulationDescriptor.moveFactMapping(-1, 0); fail(); }, IllegalArgumentException.class); muteException(() -> { simulationDescriptor.moveFactMapping(0, 2); fail(); }, IllegalArgumentException.class); muteException(() -> { simulationDescriptor.moveFactMapping(0, -1); fail(); }, IllegalArgumentException.class); }
@Test public void moveFactMappingOldFailTest() { ExpressionIdentifier expressionIdentifier2 = ExpressionIdentifier.create("Test expression 2", FactMappingType.GIVEN); simulationDescriptor.addFactMapping(factIdentifier, expressionIdentifier); simulationDescriptor.addFactMapping(factIdentifier, expressionIdentifier2); muteException(() -> { simulationDescriptor.moveFactMapping(2, 0); fail(); }, IllegalArgumentException.class); muteException(() -> { simulationDescriptor.moveFactMapping(-1, 0); fail(); }, IllegalArgumentException.class); muteException(() -> { simulationDescriptor.moveFactMapping(0, 2); fail(); }, IllegalArgumentException.class); muteException(() -> { simulationDescriptor.moveFactMapping(0, -1); fail(); }, IllegalArgumentException.class); }