@Test public void noOperation_Execute() { // Arrange // Act Instruction.NO_OPERATION.execute(executionContext); // Assert mockery.assertIsSatisfied(); }
@Test public void decrement_Execute() { // Arrange mockery.checking( new Expectations() { { oneOf(executionContext).decrement(); } }); // Act Instruction.DECREMENT.execute(executionContext); // Assert mockery.assertIsSatisfied(); }
@Test public void testAndJumpBackward_Execute() { // Arrange mockery.checking( new Expectations() { { oneOf(executionContext).testAndJumpBackward(); } }); // Act Instruction.TEST_AND_JUMP_BACKWARD.execute(executionContext); // Assert mockery.assertIsSatisfied(); }
@Test public void output_Execute() { // Arrange mockery.checking( new Expectations() { { oneOf(executionContext).ouput(); } }); // Act Instruction.OUTPUT.execute(executionContext); // Assert mockery.assertIsSatisfied(); }
@Test public void moveBackward_Execute() { // Arrange mockery.checking( new Expectations() { { oneOf(executionContext).moveBackward(); } }); // Act Instruction.MOVE_BACKWARD.execute(executionContext); // Assert mockery.assertIsSatisfied(); }