test_class.declarator: user
test_class.modifier: private
test_class.original_string: private User user;
test_class.type: User
test_class.var_name: user
test_class.declarator: repository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private EntityRepository repository;
test_class.type: EntityRepository
test_class.var_name: repository
test_class.file: dddlib-security/dddlib-security-domain/src/test/java/org/dayatang/security/domain/UserTest.java
test_class.identifier: UserTest
test_case.body: @Test
      public void constructor() {
          user = new MyUser("zhang", "123");
          assertThat(user.getName(), is("zhang"));
          assertThat(user.getPassword(), is("123"));
      }
test_case.class_method_signature: UserTest.constructor()
test_case.full_signature: @Test public void constructor()
test_case.identifier: constructor
test_case.invocations: assertThat getName is assertThat getPassword is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void constructor()
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: passwordHint
focal_class.modifier: private
focal_class.original_string: private String passwordHint;
focal_class.type: String
focal_class.var_name: passwordHint
focal_class.declarator: locked = false
focal_class.modifier: private
focal_class.original_string: private boolean locked = false;
focal_class.type: boolean
focal_class.var_name: locked
focal_class.file: dddlib-security/dddlib-security-domain/src/main/java/org/dayatang/security/domain/User.java
focal_class.identifier: User
focal_class.interfaces: implements Principal
focal_class.class_method_signature: User.User()
focal_class.full_signature: public  User()
focal_class.identifier: User
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  User()
focal_class.class_method_signature: User.User(String name, String password)
focal_class.full_signature: public  User(String name, String password)
focal_class.identifier: User
focal_class.modifiers: public
focal_class.parameters: (String name, String password)
focal_class.signature:  User(String name, String password)
focal_class.class_method_signature: User.getPassword()
focal_class.full_signature: public String getPassword()
focal_class.identifier: getPassword
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPassword()
focal_class.class_method_signature: User.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_class.class_method_signature: User.getPasswordHint()
focal_class.full_signature: public String getPasswordHint()
focal_class.identifier: getPasswordHint
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPasswordHint()
focal_class.class_method_signature: User.setPasswordHint(String passwordHint)
focal_class.full_signature: public void setPasswordHint(String passwordHint)
focal_class.identifier: setPasswordHint
focal_class.modifiers: public
focal_class.parameters: (String passwordHint)
focal_class.return: void
focal_class.signature: void setPasswordHint(String passwordHint)
focal_class.class_method_signature: User.isLocked()
focal_class.full_signature: public boolean isLocked()
focal_class.identifier: isLocked
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isLocked()
focal_class.class_method_signature: User.setLocked(boolean locked)
focal_class.full_signature: public void setLocked(boolean locked)
focal_class.identifier: setLocked
focal_class.modifiers: public
focal_class.parameters: (boolean locked)
focal_class.return: void
focal_class.signature: void setLocked(boolean locked)
focal_class.class_method_signature: User.businessKeys()
focal_class.full_signature: @Override public String[] businessKeys()
focal_class.identifier: businessKeys
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] businessKeys()
focal_class.class_method_signature: User.lock()
focal_class.full_signature: public void lock()
focal_class.identifier: lock
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void lock()
focal_class.class_method_signature: User.unlock()
focal_class.full_signature: public void unlock()
focal_class.identifier: unlock
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void unlock()
focal_class.class_method_signature: User.changePassword(String origPassword, String newPassword)
focal_class.full_signature: public void changePassword(String origPassword, String newPassword)
focal_class.identifier: changePassword
focal_class.modifiers: public
focal_class.parameters: (String origPassword, String newPassword)
focal_class.return: void
focal_class.signature: void changePassword(String origPassword, String newPassword)
focal_class.class_method_signature: User.matchPassword(String password)
focal_class.full_signature: public boolean matchPassword(String password)
focal_class.identifier: matchPassword
focal_class.modifiers: public
focal_class.parameters: (String password)
focal_class.return: boolean
focal_class.signature: boolean matchPassword(String password)
focal_class.class_method_signature: User.unmatchPassword(String password)
focal_class.full_signature: public boolean unmatchPassword(String password)
focal_class.identifier: unmatchPassword
focal_class.modifiers: public
focal_class.parameters: (String password)
focal_class.return: boolean
focal_class.signature: boolean unmatchPassword(String password)
focal_class.class_method_signature: User.existsUsername(String username)
focal_class.full_signature: public static boolean existsUsername(String username)
focal_class.identifier: existsUsername
focal_class.modifiers: public static
focal_class.parameters: (String username)
focal_class.return: boolean
focal_class.signature: boolean existsUsername(String username)
focal_class.class_method_signature: User.get(String id)
focal_class.full_signature: public static User get(String id)
focal_class.identifier: get
focal_class.modifiers: public static
focal_class.parameters: (String id)
focal_class.return: User
focal_class.signature: User get(String id)
focal_class.class_method_signature: User.getByName(String name)
focal_class.full_signature: public static User getByName(String name)
focal_class.identifier: getByName
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: User
focal_class.signature: User getByName(String name)
focal_class.class_method_signature: User.list()
focal_class.full_signature: public static List<User> list()
focal_class.identifier: list
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: List<User>
focal_class.signature: List<User> list()
focal_class.class_method_signature: User.authenticate(String username, String password)
focal_class.full_signature: public static boolean authenticate(String username, String password)
focal_class.identifier: authenticate
focal_class.modifiers: public static
focal_class.parameters: (String username, String password)
focal_class.return: boolean
focal_class.signature: boolean authenticate(String username, String password)
focal_class.class_method_signature: User.create(String username)
focal_class.full_signature: public static User create(String username)
focal_class.identifier: create
focal_class.modifiers: public static
focal_class.parameters: (String username)
focal_class.return: User
focal_class.signature: User create(String username)
focal_class.class_method_signature: User.create(String username, String password)
focal_class.full_signature: public static User create(String username, String password)
focal_class.identifier: create
focal_class.modifiers: public static
focal_class.parameters: (String username, String password)
focal_class.return: User
focal_class.signature: User create(String username, String password)
focal_class.class_method_signature: User.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: User.equals(Object other)
focal_class.full_signature: @Override public boolean equals(Object other)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object other)
focal_class.return: boolean
focal_class.signature: boolean equals(Object other)
focal_class.class_method_signature: User.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends Actor
focal_method.body: public String getPassword() {
          return password;
      }
focal_method.class_method_signature: User.getPassword()
focal_method.full_signature: public String getPassword()
focal_method.identifier: getPassword
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getPassword()