@Test public void testSetGlobalConstructor () { EventManager.instance = null; new EventManager("test", true); assertNotNull(EventManager.instance); assertNotNull(EventManager.getInstance()); EventManager.instance = null; }
public static final EventManager getInstance() { return EventManager.instance; }
EventManager { public static final EventManager getInstance() { return EventManager.instance; } }
EventManager { public static final EventManager getInstance() { return EventManager.instance; } EventManager(String name, boolean setAsGlobal); }
EventManager { public static final EventManager getInstance() { return EventManager.instance; } EventManager(String name, boolean setAsGlobal); void update(); void update(int maxMillis); void queueEvent(EventData event); void triggerEvent(EventData event); void addListener(int typeID, EventListener<T> listener); void removeListener(int typeID, EventListener<T> listener); static final EventManager getInstance(); }
EventManager { public static final EventManager getInstance() { return EventManager.instance; } EventManager(String name, boolean setAsGlobal); void update(); void update(int maxMillis); void queueEvent(EventData event); void triggerEvent(EventData event); void addListener(int typeID, EventListener<T> listener); void removeListener(int typeID, EventListener<T> listener); static final EventManager getInstance();  }