test_class.declarator: userService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private UserService userService;
test_class.type: UserService
test_class.var_name: userService
test_class.declarator: userDetailsService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private UserDetailsService userDetailsService;
test_class.type: UserDetailsService
test_class.var_name: userDetailsService
test_class.file: lzpeng-boot-server/src/test/java/com/lzpeng/project/sys/service/UserServiceTest.java
test_class.identifier: UserServiceTest
test_case.body: @Test
      public void testFindById() {
          String id = "{}";
          User user = userService.findById(id);
          assertEquals(user.getId(), id);
      }
test_case.class_method_signature: UserServiceTest.testFindById()
test_case.full_signature: @Test public void testFindById()
test_case.identifier: testFindById
test_case.invocations: findById assertEquals getId
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindById()
focal_class.declarator: passwordEncoder
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private PasswordEncoder passwordEncoder;
focal_class.type: PasswordEncoder
focal_class.var_name: passwordEncoder
focal_class.declarator: roleService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private RoleService roleService;
focal_class.type: RoleService
focal_class.var_name: roleService
focal_class.declarator: userAuditor
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private UserAuditor userAuditor;
focal_class.type: UserAuditor
focal_class.var_name: userAuditor
focal_class.declarator: BCRYPT_PATTERN = Pattern
              .compile("\\A\\$2(a|y|b)?\\$(\\d\\d)\\$[./0-9A-Za-z]{53}")
focal_class.modifier: private
focal_class.original_string: private Pattern BCRYPT_PATTERN = Pattern
              .compile("\\A\\$2(a|y|b)?\\$(\\d\\d)\\$[./0-9A-Za-z]{53}");
focal_class.type: Pattern
focal_class.var_name: BCRYPT_PATTERN
focal_class.file: lzpeng-boot-server/src/main/java/com/lzpeng/project/sys/service/UserService.java
focal_class.identifier: UserService
focal_class.interfaces: implements UserDetailsService
focal_class.class_method_signature: UserService.beforeSave(User user)
focal_class.full_signature: @Override @CachePut(value = ENTITY_NAME, key = "#result.id", unless = "#result == null") public boolean beforeSave(User user)
focal_class.identifier: beforeSave
focal_class.modifiers: @Override @CachePut(value = ENTITY_NAME, key = "#result.id", unless = "#result == null") public
focal_class.parameters: (User user)
focal_class.return: boolean
focal_class.signature: boolean beforeSave(User user)
focal_class.class_method_signature: UserService.findById(String id)
focal_class.full_signature: @Override @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null") public User findById(String id)
focal_class.identifier: findById
focal_class.modifiers: @Override @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null") public
focal_class.parameters: (String id)
focal_class.return: User
focal_class.signature: User findById(String id)
focal_class.class_method_signature: UserService.loadUserByUsername(String username)
focal_class.full_signature: @Override public UserDetails loadUserByUsername(String username)
focal_class.identifier: loadUserByUsername
focal_class.modifiers: @Override public
focal_class.parameters: (String username)
focal_class.return: UserDetails
focal_class.signature: UserDetails loadUserByUsername(String username)
focal_class.class_method_signature: UserService.findByUsername(String username)
focal_class.full_signature: public User findByUsername(String username)
focal_class.identifier: findByUsername
focal_class.modifiers: public
focal_class.parameters: (String username)
focal_class.return: User
focal_class.signature: User findByUsername(String username)
focal_class.class_method_signature: UserService.register(User user)
focal_class.full_signature: public User register(User user)
focal_class.identifier: register
focal_class.modifiers: public
focal_class.parameters: (User user)
focal_class.return: User
focal_class.signature: User register(User user)
focal_class.class_method_signature: UserService.setRoles(String userId, String[] roleIds)
focal_class.full_signature: public User setRoles(String userId, String[] roleIds)
focal_class.identifier: setRoles
focal_class.modifiers: public
focal_class.parameters: (String userId, String[] roleIds)
focal_class.return: User
focal_class.signature: User setRoles(String userId, String[] roleIds)
focal_class.class_method_signature: UserService.getCurrentUser()
focal_class.full_signature: public User getCurrentUser()
focal_class.identifier: getCurrentUser
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: User
focal_class.signature: User getCurrentUser()
focal_class.class_method_signature: UserService.getCurrentUserAuthorities()
focal_class.full_signature: public Collection<? extends String> getCurrentUserAuthorities()
focal_class.identifier: getCurrentUserAuthorities
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Collection<? extends String>
focal_class.signature: Collection<? extends String> getCurrentUserAuthorities()
focal_class.superclass: extends AbstractUserService
focal_method.body: @Override
      @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null")
      public User findById(String id) {
          return super.findById(id);
      }
focal_method.class_method_signature: UserService.findById(String id)
focal_method.full_signature: @Override @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null") public User findById(String id)
focal_method.identifier: findById
focal_method.invocations: findById
focal_method.modifiers: @Override @Cacheable(value = ENTITY_NAME, key = "#id", unless = "#result == null") public
focal_method.parameters: (String id)
focal_method.return: User
focal_method.signature: User findById(String id)