@Test public void testGetLastProfileDirectory() { UserPreferences userPrefs = MockUserPreferencesFactory.getInstance().create(); IPreferenceHandler mockPrefHandler = userPrefs.getPreferenceHandler(); String testProfilePath = VALID_DIR; mockPrefHandler.setPref(PROFILE_PATH, testProfilePath); File actualProfileDir = userPrefs.getLastProfileDirectory(); assertEquals(new File(VALID_DIR), actualProfileDir); }
public File getLastProfileDirectory() { String path = prefHandler.getPref(PROFILE_PATH); return path != null ? new File(path) : null; }
UserPreferences { public File getLastProfileDirectory() { String path = prefHandler.getPref(PROFILE_PATH); return path != null ? new File(path) : null; } }
UserPreferences { public File getLastProfileDirectory() { String path = prefHandler.getPref(PROFILE_PATH); return path != null ? new File(path) : null; } private  UserPreferences(); }
UserPreferences { public File getLastProfileDirectory() { String path = prefHandler.getPref(PROFILE_PATH); return path != null ? new File(path) : null; } 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 File getLastProfileDirectory() { String path = prefHandler.getPref(PROFILE_PATH); return path != null ? new File(path) : null; } 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);  }