@Test public void testSetWritesInstallationIdToFile() throws Exception { File installationIdFile = new File(temporaryFolder.getRoot(), "installationId"); InstallationId installationId = new InstallationId(installationIdFile); installationId.set("test_installation_id"); assertEquals("test_installation_id", ParseFileUtils.readFileToString(installationIdFile, "UTF-8")); }
public void set(String newInstallationId) { synchronized (lock) { if (ParseTextUtils.isEmpty(newInstallationId) || newInstallationId.equals(get())) { return; } setInternal(newInstallationId); } }
InstallationId { public void set(String newInstallationId) { synchronized (lock) { if (ParseTextUtils.isEmpty(newInstallationId) || newInstallationId.equals(get())) { return; } setInternal(newInstallationId); } } }
InstallationId { public void set(String newInstallationId) { synchronized (lock) { if (ParseTextUtils.isEmpty(newInstallationId) || newInstallationId.equals(get())) { return; } setInternal(newInstallationId); } } InstallationId(File file); }
InstallationId { public void set(String newInstallationId) { synchronized (lock) { if (ParseTextUtils.isEmpty(newInstallationId) || newInstallationId.equals(get())) { return; } setInternal(newInstallationId); } } InstallationId(File file); String get(); void set(String newInstallationId); }
InstallationId { public void set(String newInstallationId) { synchronized (lock) { if (ParseTextUtils.isEmpty(newInstallationId) || newInstallationId.equals(get())) { return; } setInternal(newInstallationId); } } InstallationId(File file); String get(); void set(String newInstallationId);  }