@Test public void testAdd() { Command callback = mock(Command.class); tested.add("item1", callback); verify(view, times(1)).add(eq("item1"), eq(callback)); }
public ZoomLevelSelector add(final String text, final Command onClick) { view.add(text, onClick); return this; }
ZoomLevelSelector implements IsWidget { public ZoomLevelSelector add(final String text, final Command onClick) { view.add(text, onClick); return this; } }
ZoomLevelSelector implements IsWidget { public ZoomLevelSelector add(final String text, final Command onClick) { view.add(text, onClick); return this; } @Inject  ZoomLevelSelector(final View view); }
ZoomLevelSelector implements IsWidget { public ZoomLevelSelector add(final String text, final Command onClick) { view.add(text, onClick); return this; } @Inject  ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelector onDecreaseLevel(final Command onDecreaseLevel); ZoomLevelSelector onIncreaseLevel(final Command onIncreaseLevel); ZoomLevelSelector onReset(final Command onReset); ZoomLevelSelector setText(final String text); ZoomLevelSelector dropUp(); ZoomLevelSelector add(final String text,
                                 final Command onClick); ZoomLevelSelector clear(); ZoomLevelSelector setEnabled(boolean enabled); @Override Widget asWidget(); @PreDestroy void destroy(); }
ZoomLevelSelector implements IsWidget { public ZoomLevelSelector add(final String text, final Command onClick) { view.add(text, onClick); return this; } @Inject  ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelector onDecreaseLevel(final Command onDecreaseLevel); ZoomLevelSelector onIncreaseLevel(final Command onIncreaseLevel); ZoomLevelSelector onReset(final Command onReset); ZoomLevelSelector setText(final String text); ZoomLevelSelector dropUp(); ZoomLevelSelector add(final String text,
                                 final Command onClick); ZoomLevelSelector clear(); ZoomLevelSelector setEnabled(boolean enabled); @Override Widget asWidget(); @PreDestroy void destroy();  }