@Test public void test() { String[] args = {}; App.main(args); }
public static void main(String[] args) { MenuStore menuStore = new MenuStore(); Dispatcher.getInstance().registerStore(menuStore); ContentStore contentStore = new ContentStore(); Dispatcher.getInstance().registerStore(contentStore); MenuView menuView = new MenuView(); menuStore.registerView(menuView); ContentView contentView = new ContentView(); contentStore.registerView(contentView); menuView.render(); contentView.render(); menuView.itemClicked(MenuItem.COMPANY); }
App { public static void main(String[] args) { MenuStore menuStore = new MenuStore(); Dispatcher.getInstance().registerStore(menuStore); ContentStore contentStore = new ContentStore(); Dispatcher.getInstance().registerStore(contentStore); MenuView menuView = new MenuView(); menuStore.registerView(menuView); ContentView contentView = new ContentView(); contentStore.registerView(contentView); menuView.render(); contentView.render(); menuView.itemClicked(MenuItem.COMPANY); } }
App { public static void main(String[] args) { MenuStore menuStore = new MenuStore(); Dispatcher.getInstance().registerStore(menuStore); ContentStore contentStore = new ContentStore(); Dispatcher.getInstance().registerStore(contentStore); MenuView menuView = new MenuView(); menuStore.registerView(menuView); ContentView contentView = new ContentView(); contentStore.registerView(contentView); menuView.render(); contentView.render(); menuView.itemClicked(MenuItem.COMPANY); }  }
App { public static void main(String[] args) { MenuStore menuStore = new MenuStore(); Dispatcher.getInstance().registerStore(menuStore); ContentStore contentStore = new ContentStore(); Dispatcher.getInstance().registerStore(contentStore); MenuView menuView = new MenuView(); menuStore.registerView(menuView); ContentView contentView = new ContentView(); contentStore.registerView(contentView); menuView.render(); contentView.render(); menuView.itemClicked(MenuItem.COMPANY); }  static void main(String[] args); }
App { public static void main(String[] args) { MenuStore menuStore = new MenuStore(); Dispatcher.getInstance().registerStore(menuStore); ContentStore contentStore = new ContentStore(); Dispatcher.getInstance().registerStore(contentStore); MenuView menuView = new MenuView(); menuStore.registerView(menuView); ContentView contentView = new ContentView(); contentStore.registerView(contentView); menuView.render(); contentView.render(); menuView.itemClicked(MenuItem.COMPANY); }  static void main(String[] args);  }