test_class.declarator: passwordKey = "configuration.password"
test_class.modifier: private final
test_class.original_string: private final String passwordKey = "configuration.password";
test_class.type: String
test_class.var_name: passwordKey
test_class.declarator: configuration
test_class.modifier: private
test_class.original_string: private ConfigurationRegistry configuration;
test_class.type: ConfigurationRegistry
test_class.var_name: configuration
test_class.declarator: configurationPasswordChecker
test_class.modifier: private
test_class.original_string: private ConfigurationPasswordChecker configurationPasswordChecker;
test_class.type: ConfigurationPasswordChecker
test_class.var_name: configurationPasswordChecker
test_class.file: stagemonitor-web-servlet/src/test/java/org/stagemonitor/web/servlet/configuration/ConfigurationPasswordCheckerTest.java
test_class.identifier: ConfigurationPasswordCheckerTest
test_case.body: @Test
  	public void testUpdateConfigurationWithoutPassword() throws IOException {
  		configuration.addConfigurationSource(SimpleSource.forTest(passwordKey, "pwd"));
  
  		try {
  			configurationPasswordChecker.assertPasswordCorrect(null);
  			fail();
  		} catch (IllegalStateException e) {
  			assertEquals("Wrong password for 'configuration.password'.", e.getMessage());
  		}
  
  	}
test_case.class_method_signature: ConfigurationPasswordCheckerTest.testUpdateConfigurationWithoutPassword()
test_case.full_signature: @Test public void testUpdateConfigurationWithoutPassword()
test_case.identifier: testUpdateConfigurationWithoutPassword
test_case.invocations: addConfigurationSource forTest assertPasswordCorrect fail assertEquals getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpdateConfigurationWithoutPassword()
focal_class.declarator: configurationRegistry
focal_class.modifier: private final
focal_class.original_string: private final ConfigurationRegistry configurationRegistry;
focal_class.type: ConfigurationRegistry
focal_class.var_name: configurationRegistry
focal_class.declarator: updateConfigPasswordKey
focal_class.modifier: private final
focal_class.original_string: private final String updateConfigPasswordKey;
focal_class.type: String
focal_class.var_name: updateConfigPasswordKey
focal_class.file: stagemonitor-web-servlet/src/main/java/org/stagemonitor/web/servlet/configuration/ConfigurationPasswordChecker.java
focal_class.identifier: ConfigurationPasswordChecker
focal_class.class_method_signature: ConfigurationPasswordChecker.ConfigurationPasswordChecker(ConfigurationRegistry configurationRegistry, String updateConfigPasswordKey)
focal_class.full_signature: public  ConfigurationPasswordChecker(ConfigurationRegistry configurationRegistry, String updateConfigPasswordKey)
focal_class.identifier: ConfigurationPasswordChecker
focal_class.modifiers: public
focal_class.parameters: (ConfigurationRegistry configurationRegistry, String updateConfigPasswordKey)
focal_class.signature:  ConfigurationPasswordChecker(ConfigurationRegistry configurationRegistry, String updateConfigPasswordKey)
focal_class.class_method_signature: ConfigurationPasswordChecker.isPasswordCorrect(String password)
focal_class.full_signature: public boolean isPasswordCorrect(String password)
focal_class.identifier: isPasswordCorrect
focal_class.modifiers: public
focal_class.parameters: (String password)
focal_class.return: boolean
focal_class.signature: boolean isPasswordCorrect(String password)
focal_class.class_method_signature: ConfigurationPasswordChecker.assertPasswordCorrect(String password)
focal_class.full_signature: public void assertPasswordCorrect(String password)
focal_class.identifier: assertPasswordCorrect
focal_class.modifiers: public
focal_class.parameters: (String password)
focal_class.return: void
focal_class.signature: void assertPasswordCorrect(String password)
focal_class.class_method_signature: ConfigurationPasswordChecker.isPasswordSet()
focal_class.full_signature: public boolean isPasswordSet()
focal_class.identifier: isPasswordSet
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isPasswordSet()
focal_method.body: public void assertPasswordCorrect(String password) {
  		if (!isPasswordSet()) {
  			throw new IllegalStateException("'" + updateConfigPasswordKey + "' is not set.");
  		}
  
  		if (!isPasswordCorrect(password)) {
  			throw new IllegalStateException("Wrong password for '" + updateConfigPasswordKey + "'.");
  		}
  	}
focal_method.class_method_signature: ConfigurationPasswordChecker.assertPasswordCorrect(String password)
focal_method.full_signature: public void assertPasswordCorrect(String password)
focal_method.identifier: assertPasswordCorrect
focal_method.invocations: isPasswordSet isPasswordCorrect
focal_method.modifiers: public
focal_method.parameters: (String password)
focal_method.return: void
focal_method.signature: void assertPasswordCorrect(String password)