test_class.file: se-jcr-commons/src/test/java/org/springframework/extensions/jcr/support/SimpleCredentialsFactoryBeanTest.java
test_class.identifier: SimpleCredentialsFactoryBeanTest
test_case.body: @Test
      public void testGetObject() throws Exception {
          SimpleCredentialsFactoryBean factoryBean = new SimpleCredentialsFactoryBean();
          factoryBean.setUserID("testuser");
          factoryBean.setPassword("secret");
          SimpleCredentials sc = factoryBean.getObject();
          assertNotNull(sc);
          assertEquals(factoryBean.getObjectType(), sc.getClass());
          assertEquals("testuser", sc.getUserID());
          assertEquals("secret", new String(sc.getPassword()));
      }
test_case.class_method_signature: SimpleCredentialsFactoryBeanTest.testGetObject()
test_case.full_signature: @Test public void testGetObject()
test_case.identifier: testGetObject
test_case.invocations: setUserID setPassword getObject assertNotNull assertEquals getObjectType getClass assertEquals getUserID assertEquals getPassword
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetObject()
focal_class.declarator: userID
focal_class.modifier: private
focal_class.original_string: private String userID;
focal_class.type: String
focal_class.var_name: userID
focal_class.declarator: password
focal_class.modifier: private
focal_class.original_string: private String password;
focal_class.type: String
focal_class.var_name: password
focal_class.declarator: simpleCredentials
focal_class.modifier: private
focal_class.original_string: private SimpleCredentials simpleCredentials;
focal_class.type: SimpleCredentials
focal_class.var_name: simpleCredentials
focal_class.file: se-jcr-commons/src/main/java/org/springframework/extensions/jcr/support/SimpleCredentialsFactoryBean.java
focal_class.identifier: SimpleCredentialsFactoryBean
focal_class.interfaces: implements FactoryBean<SimpleCredentials>
focal_class.class_method_signature: SimpleCredentialsFactoryBean.getObject()
focal_class.full_signature: @Override public SimpleCredentials getObject()
focal_class.identifier: getObject
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: SimpleCredentials
focal_class.signature: SimpleCredentials getObject()
focal_class.class_method_signature: SimpleCredentialsFactoryBean.getObjectType()
focal_class.full_signature: @Override public Class<?> getObjectType()
focal_class.identifier: getObjectType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<?>
focal_class.signature: Class<?> getObjectType()
focal_class.class_method_signature: SimpleCredentialsFactoryBean.isSingleton()
focal_class.full_signature: @Override public boolean isSingleton()
focal_class.identifier: isSingleton
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isSingleton()
focal_class.class_method_signature: SimpleCredentialsFactoryBean.setUserID(String userID)
focal_class.full_signature: public void setUserID(String userID)
focal_class.identifier: setUserID
focal_class.modifiers: public
focal_class.parameters: (String userID)
focal_class.return: void
focal_class.signature: void setUserID(String userID)
focal_class.class_method_signature: SimpleCredentialsFactoryBean.setPassword(String password)
focal_class.full_signature: public void setPassword(String password)
focal_class.identifier: setPassword
focal_class.modifiers: public
focal_class.parameters: (String password)
focal_class.return: void
focal_class.signature: void setPassword(String password)
focal_method.body: @Override
      public SimpleCredentials getObject() throws Exception {
          if (simpleCredentials == null) {
              simpleCredentials = new SimpleCredentials(userID, password.toCharArray());
          }
          return simpleCredentials;
      }
focal_method.class_method_signature: SimpleCredentialsFactoryBean.getObject()
focal_method.full_signature: @Override public SimpleCredentials getObject()
focal_method.identifier: getObject
focal_method.invocations: toCharArray
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: SimpleCredentials
focal_method.signature: SimpleCredentials getObject()