@Test public void testSetup() { doNothing().when(shortcuts).addEventListener(anyString(), any()); doReturn(false).when(shortcuts).isLoaded(); shortcuts.setup(); verify(shortcuts).addEventListener(KEYDOWN, shortcuts.KEY_DOWN_LISTENER); verify(shortcuts).addEventListener(KEYDOWN, shortcuts.KEY_DOWN_LISTENER); }
public void setup() { if (isLoaded()) { return; } loaded = true; addEventListener(KEYDOWN, KEY_DOWN_LISTENER); addEventListener(CLICK, CLICK_LISTENER); }
DataTypeShortcuts { public void setup() { if (isLoaded()) { return; } loaded = true; addEventListener(KEYDOWN, KEY_DOWN_LISTENER); addEventListener(CLICK, CLICK_LISTENER); } }
DataTypeShortcuts { public void setup() { if (isLoaded()) { return; } loaded = true; addEventListener(KEYDOWN, KEY_DOWN_LISTENER); addEventListener(CLICK, CLICK_LISTENER); } @Inject  DataTypeShortcuts(final DataTypeListShortcuts listShortcuts); }
DataTypeShortcuts { public void setup() { if (isLoaded()) { return; } loaded = true; addEventListener(KEYDOWN, KEY_DOWN_LISTENER); addEventListener(CLICK, CLICK_LISTENER); } @Inject  DataTypeShortcuts(final DataTypeListShortcuts listShortcuts); void init(final DataTypeList dataTypeList); void setup(); void teardown(); void reset(); void highlight(final Element element); void enable(); void disable(); }
DataTypeShortcuts { public void setup() { if (isLoaded()) { return; } loaded = true; addEventListener(KEYDOWN, KEY_DOWN_LISTENER); addEventListener(CLICK, CLICK_LISTENER); } @Inject  DataTypeShortcuts(final DataTypeListShortcuts listShortcuts); void init(final DataTypeList dataTypeList); void setup(); void teardown(); void reset(); void highlight(final Element element); void enable(); void disable();  }