@Test public void testGetLastProfile() { UserPreferences userPrefs = MockUserPreferencesFactory.getInstance().create(); IPreferenceHandler mockPrefHandler = userPrefs.getPreferenceHandler(); String expectedProfile = "testProfile"; mockPrefHandler.setPref(PROFILE, expectedProfile); String actualProfile = userPrefs.getLastProfile(); assertEquals(expectedProfile, actualProfile); }
public String getLastProfile() { return prefHandler.getPref(PROFILE); }
UserPreferences { public String getLastProfile() { return prefHandler.getPref(PROFILE); } }
UserPreferences { public String getLastProfile() { return prefHandler.getPref(PROFILE); } private  UserPreferences(); }
UserPreferences { public String getLastProfile() { return prefHandler.getPref(PROFILE); } private  UserPreferences(); File getLastTraceDirectory(); void setLastTraceDirectory(File tdPath); String getLastProfile(); String getLastProfile(ProfileType profileType); void setLastProfile(Profile profile); File getLastProfileDirectory(); void setLastProfileDirectory(File profilePath); File getLastExportDirectory(); void setLastExportDirectory(File exportDir); List<PrivateDataInfo> getPrivateData(); void setPrivateData(List<PrivateDataInfo> privateData); }
UserPreferences { public String getLastProfile() { return prefHandler.getPref(PROFILE); } private  UserPreferences(); File getLastTraceDirectory(); void setLastTraceDirectory(File tdPath); String getLastProfile(); String getLastProfile(ProfileType profileType); void setLastProfile(Profile profile); File getLastProfileDirectory(); void setLastProfileDirectory(File profilePath); File getLastExportDirectory(); void setLastExportDirectory(File exportDir); List<PrivateDataInfo> getPrivateData(); void setPrivateData(List<PrivateDataInfo> privateData);  }