@Test public void testGetInstance() { UserPreferencesFactory factory = UserPreferencesFactory.getInstance(); assertNotNull(factory); assertEquals(UserPreferencesFactory.class, factory.getClass()); }
public static UserPreferencesFactory getInstance() { return instance; }
UserPreferencesFactory { public static UserPreferencesFactory getInstance() { return instance; } }
UserPreferencesFactory { public static UserPreferencesFactory getInstance() { return instance; } private  UserPreferencesFactory(); }
UserPreferencesFactory { public static UserPreferencesFactory getInstance() { return instance; } private  UserPreferencesFactory(); static UserPreferencesFactory getInstance(); UserPreferences create(); }
UserPreferencesFactory { public static UserPreferencesFactory getInstance() { return instance; } private  UserPreferencesFactory(); static UserPreferencesFactory getInstance(); UserPreferences create();  }