@Test public void testApp() { String[] args = {}; App.main(args); }
public static void main(String[] args) { Injector injector = Guice.createInjector(new LotteryTestingModule()); LotteryAdministration administartion = injector.getInstance(LotteryAdministration.class); administartion.resetLottery(); LotteryService service = injector.getInstance(LotteryService.class); SampleData.submitTickets(service, 20); administartion.performLottery(); }
App { public static void main(String[] args) { Injector injector = Guice.createInjector(new LotteryTestingModule()); LotteryAdministration administartion = injector.getInstance(LotteryAdministration.class); administartion.resetLottery(); LotteryService service = injector.getInstance(LotteryService.class); SampleData.submitTickets(service, 20); administartion.performLottery(); } }
App { public static void main(String[] args) { Injector injector = Guice.createInjector(new LotteryTestingModule()); LotteryAdministration administartion = injector.getInstance(LotteryAdministration.class); administartion.resetLottery(); LotteryService service = injector.getInstance(LotteryService.class); SampleData.submitTickets(service, 20); administartion.performLottery(); }  }
App { public static void main(String[] args) { Injector injector = Guice.createInjector(new LotteryTestingModule()); LotteryAdministration administartion = injector.getInstance(LotteryAdministration.class); administartion.resetLottery(); LotteryService service = injector.getInstance(LotteryService.class); SampleData.submitTickets(service, 20); administartion.performLottery(); }  static void main(String[] args); }
App { public static void main(String[] args) { Injector injector = Guice.createInjector(new LotteryTestingModule()); LotteryAdministration administartion = injector.getInstance(LotteryAdministration.class); administartion.resetLottery(); LotteryService service = injector.getInstance(LotteryService.class); SampleData.submitTickets(service, 20); administartion.performLottery(); }  static void main(String[] args);  }