@Test public void testClearCurrentConfigForTestingSuccess() { File configFile = new File(temporaryFolder.getRoot(), "config"); ParseCurrentConfigController currentConfigController = new ParseCurrentConfigController(configFile); currentConfigController.currentConfig = new ParseConfig(); assertNotNull(currentConfigController.currentConfig); currentConfigController.clearCurrentConfigForTesting(); assertNull(currentConfigController.currentConfig); }
void clearCurrentConfigForTesting() { synchronized (currentConfigMutex) { currentConfig = null; } }
ParseCurrentConfigController { void clearCurrentConfigForTesting() { synchronized (currentConfigMutex) { currentConfig = null; } } }
ParseCurrentConfigController { void clearCurrentConfigForTesting() { synchronized (currentConfigMutex) { currentConfig = null; } } ParseCurrentConfigController(File currentConfigFile); }
ParseCurrentConfigController { void clearCurrentConfigForTesting() { synchronized (currentConfigMutex) { currentConfig = null; } } ParseCurrentConfigController(File currentConfigFile); Task<Void> setCurrentConfigAsync(final ParseConfig config); Task<ParseConfig> getCurrentConfigAsync(); }
ParseCurrentConfigController { void clearCurrentConfigForTesting() { synchronized (currentConfigMutex) { currentConfig = null; } } ParseCurrentConfigController(File currentConfigFile); Task<Void> setCurrentConfigAsync(final ParseConfig config); Task<ParseConfig> getCurrentConfigAsync();  }