@Test public void testIsPasswordSetTrue() throws Exception { ConfigurationRegistry configuration = ConfigurationRegistry.builder().build(); configuration.addConfigurationSource(SimpleSource.forTest(passwordKey, "")); assertTrue(new ConfigurationPasswordChecker(configuration, passwordKey).isPasswordSet()); }
public boolean isPasswordSet() { return configurationRegistry.getString(updateConfigPasswordKey) != null; }
ConfigurationPasswordChecker { public boolean isPasswordSet() { return configurationRegistry.getString(updateConfigPasswordKey) != null; } }
ConfigurationPasswordChecker { public boolean isPasswordSet() { return configurationRegistry.getString(updateConfigPasswordKey) != null; } ConfigurationPasswordChecker(ConfigurationRegistry configurationRegistry, String updateConfigPasswordKey); }
ConfigurationPasswordChecker { public boolean isPasswordSet() { return configurationRegistry.getString(updateConfigPasswordKey) != null; } ConfigurationPasswordChecker(ConfigurationRegistry configurationRegistry, String updateConfigPasswordKey); boolean isPasswordCorrect(String password); void assertPasswordCorrect(String password); boolean isPasswordSet(); }
ConfigurationPasswordChecker { public boolean isPasswordSet() { return configurationRegistry.getString(updateConfigPasswordKey) != null; } ConfigurationPasswordChecker(ConfigurationRegistry configurationRegistry, String updateConfigPasswordKey); boolean isPasswordCorrect(String password); void assertPasswordCorrect(String password); boolean isPasswordSet();  }