@Test public void testSteal() { this.method.steal(); assertTrue(appender.logContains(this.expectedTargetResult)); assertTrue(appender.logContains(this.expectedConfuseMethod)); assertTrue(appender.logContains(this.expectedStealMethod)); assertEquals(3, appender.getLogSize()); }
public void steal() { String target = pickTarget(); LOGGER.info("The target has been chosen as {}.", target); confuseTarget(target); stealTheItem(target); }
StealingMethod { public void steal() { String target = pickTarget(); LOGGER.info("The target has been chosen as {}.", target); confuseTarget(target); stealTheItem(target); } }
StealingMethod { public void steal() { String target = pickTarget(); LOGGER.info("The target has been chosen as {}.", target); confuseTarget(target); stealTheItem(target); }  }
StealingMethod { public void steal() { String target = pickTarget(); LOGGER.info("The target has been chosen as {}.", target); confuseTarget(target); stealTheItem(target); }  void steal(); }
StealingMethod { public void steal() { String target = pickTarget(); LOGGER.info("The target has been chosen as {}.", target); confuseTarget(target); stealTheItem(target); }  void steal();  }