@Test public void test() { App.main(new String[]{}); }
public static void main(String[] args) { LOGGER.info("A simple looking troll approaches."); Troll troll = new SimpleTroll(); troll.attack(); troll.fleeBattle(); LOGGER.info("Simple troll power {}.\n", troll.getAttackPower()); LOGGER.info("A troll with huge club surprises you."); ClubbedTroll clubbedTroll = new ClubbedTroll(troll); clubbedTroll.attack(); clubbedTroll.fleeBattle(); LOGGER.info("Clubbed troll power {}.\n", clubbedTroll.getAttackPower()); }
App { public static void main(String[] args) { LOGGER.info("A simple looking troll approaches."); Troll troll = new SimpleTroll(); troll.attack(); troll.fleeBattle(); LOGGER.info("Simple troll power {}.\n", troll.getAttackPower()); LOGGER.info("A troll with huge club surprises you."); ClubbedTroll clubbedTroll = new ClubbedTroll(troll); clubbedTroll.attack(); clubbedTroll.fleeBattle(); LOGGER.info("Clubbed troll power {}.\n", clubbedTroll.getAttackPower()); } }
App { public static void main(String[] args) { LOGGER.info("A simple looking troll approaches."); Troll troll = new SimpleTroll(); troll.attack(); troll.fleeBattle(); LOGGER.info("Simple troll power {}.\n", troll.getAttackPower()); LOGGER.info("A troll with huge club surprises you."); ClubbedTroll clubbedTroll = new ClubbedTroll(troll); clubbedTroll.attack(); clubbedTroll.fleeBattle(); LOGGER.info("Clubbed troll power {}.\n", clubbedTroll.getAttackPower()); }  }
App { public static void main(String[] args) { LOGGER.info("A simple looking troll approaches."); Troll troll = new SimpleTroll(); troll.attack(); troll.fleeBattle(); LOGGER.info("Simple troll power {}.\n", troll.getAttackPower()); LOGGER.info("A troll with huge club surprises you."); ClubbedTroll clubbedTroll = new ClubbedTroll(troll); clubbedTroll.attack(); clubbedTroll.fleeBattle(); LOGGER.info("Clubbed troll power {}.\n", clubbedTroll.getAttackPower()); }  static void main(String[] args); }
App { public static void main(String[] args) { LOGGER.info("A simple looking troll approaches."); Troll troll = new SimpleTroll(); troll.attack(); troll.fleeBattle(); LOGGER.info("Simple troll power {}.\n", troll.getAttackPower()); LOGGER.info("A troll with huge club surprises you."); ClubbedTroll clubbedTroll = new ClubbedTroll(troll); clubbedTroll.attack(); clubbedTroll.fleeBattle(); LOGGER.info("Clubbed troll power {}.\n", clubbedTroll.getAttackPower()); }  static void main(String[] args);  }