@Test public void testOnSelect() { presenter.onSelect(LINE); assertEquals(presenter.getSelectedSubtype(), LINE); verify(subtypeSelectedEvent).fire(any(DisplayerSubtypeSelectedEvent.class)); }
void onSelect(DisplayerSubType subtype) { selectedSubtype = subtype; selectEvent.fire(new DisplayerSubtypeSelectedEvent(selectedSubtype)); }
DisplayerSubtypeSelector implements IsWidget { void onSelect(DisplayerSubType subtype) { selectedSubtype = subtype; selectEvent.fire(new DisplayerSubtypeSelectedEvent(selectedSubtype)); } }
DisplayerSubtypeSelector implements IsWidget { void onSelect(DisplayerSubType subtype) { selectedSubtype = subtype; selectEvent.fire(new DisplayerSubtypeSelectedEvent(selectedSubtype)); } @Inject  DisplayerSubtypeSelector(View view,
                                    RendererManager rendererManager,
                                    Event<DisplayerSubtypeSelectedEvent> selectEvent); }
DisplayerSubtypeSelector implements IsWidget { void onSelect(DisplayerSubType subtype) { selectedSubtype = subtype; selectEvent.fire(new DisplayerSubtypeSelectedEvent(selectedSubtype)); } @Inject  DisplayerSubtypeSelector(View view,
                                    RendererManager rendererManager,
                                    Event<DisplayerSubtypeSelectedEvent> selectEvent); @Override Widget asWidget(); DisplayerSubType getSelectedSubtype(); void init(DisplayerType type, DisplayerSubType selectedSubType); }
DisplayerSubtypeSelector implements IsWidget { void onSelect(DisplayerSubType subtype) { selectedSubtype = subtype; selectEvent.fire(new DisplayerSubtypeSelectedEvent(selectedSubtype)); } @Inject  DisplayerSubtypeSelector(View view,
                                    RendererManager rendererManager,
                                    Event<DisplayerSubtypeSelectedEvent> selectEvent); @Override Widget asWidget(); DisplayerSubType getSelectedSubtype(); void init(DisplayerType type, DisplayerSubType selectedSubType);  }