@Test public void test() { String[] args = {}; App.main(args); }
public static void main(String[] args) { final Logger logger = LoggerFactory.getLogger(App.class); Guard guard = new Guard(); Thief thief = new Thief(); if (guard instanceof Permission) { guard.enter(); } else { logger.info("You have no permission to enter, please leave this area"); } if (thief instanceof Permission) { thief.steal(); } else { thief.doNothing(); } }
App { public static void main(String[] args) { final Logger logger = LoggerFactory.getLogger(App.class); Guard guard = new Guard(); Thief thief = new Thief(); if (guard instanceof Permission) { guard.enter(); } else { logger.info("You have no permission to enter, please leave this area"); } if (thief instanceof Permission) { thief.steal(); } else { thief.doNothing(); } } }
App { public static void main(String[] args) { final Logger logger = LoggerFactory.getLogger(App.class); Guard guard = new Guard(); Thief thief = new Thief(); if (guard instanceof Permission) { guard.enter(); } else { logger.info("You have no permission to enter, please leave this area"); } if (thief instanceof Permission) { thief.steal(); } else { thief.doNothing(); } }  }
App { public static void main(String[] args) { final Logger logger = LoggerFactory.getLogger(App.class); Guard guard = new Guard(); Thief thief = new Thief(); if (guard instanceof Permission) { guard.enter(); } else { logger.info("You have no permission to enter, please leave this area"); } if (thief instanceof Permission) { thief.steal(); } else { thief.doNothing(); } }  static void main(String[] args); }
App { public static void main(String[] args) { final Logger logger = LoggerFactory.getLogger(App.class); Guard guard = new Guard(); Thief thief = new Thief(); if (guard instanceof Permission) { guard.enter(); } else { logger.info("You have no permission to enter, please leave this area"); } if (thief instanceof Permission) { thief.steal(); } else { thief.doNothing(); } }  static void main(String[] args);  }