@Test public void getInstanceReturnSameObjectOnFurtherCalls() { assertEquals(core, Core.getInstance(factory)); }
public static Core getInstance() { if (core == null) { return getInstance(new ServiceFactoryImpl()); } return core; }
Core { public static Core getInstance() { if (core == null) { return getInstance(new ServiceFactoryImpl()); } return core; } }
Core { public static Core getInstance() { if (core == null) { return getInstance(new ServiceFactoryImpl()); } return core; } private  Core(ServiceFactory factory); }
Core { public static Core getInstance() { if (core == null) { return getInstance(new ServiceFactoryImpl()); } return core; } private  Core(ServiceFactory factory); static void setErrorHandler(TMCErrorHandler errorHandler); static TMCErrorHandler getErrorHandler(); static void setTaskRunner(BackgroundTaskRunner taskRunner); static BackgroundTaskRunner getTaskRunner(); static Settings getSettings(); static CourseDAO getCourseDAO(); static ProjectDAO getProjectDAO(); static ReviewDAO getReviewDAO(); static ServerManager getServerManager(); static Updater getUpdater(); static SpywarePluginLayer getSpyware(); static ProjectEventHandler getProjectEventHandler(); static IOFactory getIOFactory(); static Core getInstance(); static Core getInstance(ServiceFactory factory); }
Core { public static Core getInstance() { if (core == null) { return getInstance(new ServiceFactoryImpl()); } return core; } private  Core(ServiceFactory factory); static void setErrorHandler(TMCErrorHandler errorHandler); static TMCErrorHandler getErrorHandler(); static void setTaskRunner(BackgroundTaskRunner taskRunner); static BackgroundTaskRunner getTaskRunner(); static Settings getSettings(); static CourseDAO getCourseDAO(); static ProjectDAO getProjectDAO(); static ReviewDAO getReviewDAO(); static ServerManager getServerManager(); static Updater getUpdater(); static SpywarePluginLayer getSpyware(); static ProjectEventHandler getProjectEventHandler(); static IOFactory getIOFactory(); static Core getInstance(); static Core getInstance(ServiceFactory factory);  }