test_class.declarator: RANDOM_UUID = UUID.randomUUID()
test_class.modifier: private static final
test_class.original_string: private static final UUID RANDOM_UUID = UUID.randomUUID();
test_class.type: UUID
test_class.var_name: RANDOM_UUID
test_class.declarator: TEST_USER_ENTITY = new UserEntity("test", "test", null)
test_class.modifier: private static final
test_class.original_string: private static final UserEntity TEST_USER_ENTITY = new UserEntity("test", "test", null);
test_class.type: UserEntity
test_class.var_name: TEST_USER_ENTITY
test_class.declarator: COUNT = 10L
test_class.modifier: private static final
test_class.original_string: private static final Long COUNT = 10L;
test_class.type: Long
test_class.var_name: COUNT
test_class.declarator: UNENCRYPTED_PASSWORD = "password"
test_class.modifier: private static final
test_class.original_string: private static final String UNENCRYPTED_PASSWORD = "password";
test_class.type: String
test_class.var_name: UNENCRYPTED_PASSWORD
test_class.declarator: ENCRYPTED_PASSWORD = "$2a$12$OiHAOiHAOiHAOiHAOiHAOek2Bn3t./pRbHo5UYYCAx.Htp/SiLvay"
test_class.modifier: private static final
test_class.original_string: private static final String ENCRYPTED_PASSWORD = "$2a$12$OiHAOiHAOiHAOiHAOiHAOek2Bn3t./pRbHo5UYYCAx.Htp/SiLvay";
test_class.type: String
test_class.var_name: ENCRYPTED_PASSWORD
test_class.declarator: mockUserRepository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UserRepository mockUserRepository;
test_class.type: UserRepository
test_class.var_name: mockUserRepository
test_class.declarator: mockSecureRandom
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SecureRandom mockSecureRandom;
test_class.type: SecureRandom
test_class.var_name: mockSecureRandom
test_class.declarator: userService
test_class.modifier: private
test_class.original_string: private UserService userService;
test_class.type: UserService
test_class.var_name: userService
test_class.file: application/confagrid-webapp/src/test/java/com/aleggeup/confagrid/user/EmbeddedUserServiceTest.java
test_class.identifier: EmbeddedUserServiceTest
test_case.body: @Test
      public void testGetById() {
          Mockito.when(mockUserRepository.findOne(RANDOM_UUID)).thenReturn(TEST_USER_ENTITY);
          final UserEntity userEntity = userService.getById(RANDOM_UUID);
  
          assertEquals(TEST_USER_ENTITY, userEntity);
  
          Mockito.verify(mockUserRepository).findOne(RANDOM_UUID);
      }
test_case.class_method_signature: EmbeddedUserServiceTest.testGetById()
test_case.full_signature: @Test public void testGetById()
test_case.identifier: testGetById
test_case.invocations: thenReturn when findOne getById assertEquals findOne verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetById()
focal_class.declarator: BCRYPT_ROUNDS = 12
focal_class.modifier: private static final
focal_class.original_string: private static final int BCRYPT_ROUNDS = 12;
focal_class.type: int
focal_class.var_name: BCRYPT_ROUNDS
focal_class.declarator: userRepository
focal_class.modifier: private final
focal_class.original_string: private final UserRepository userRepository;
focal_class.type: UserRepository
focal_class.var_name: userRepository
focal_class.declarator: passwordEncoder
focal_class.modifier: private final
focal_class.original_string: private final BCryptPasswordEncoder passwordEncoder;
focal_class.type: BCryptPasswordEncoder
focal_class.var_name: passwordEncoder
focal_class.file: application/confagrid-webapp/src/main/java/com/aleggeup/confagrid/user/EmbeddedUserService.java
focal_class.identifier: EmbeddedUserService
focal_class.interfaces: implements UserService
focal_class.class_method_signature: EmbeddedUserService.EmbeddedUserService(final UserRepository userRepository, final SecureRandom secureRandom)
focal_class.full_signature: @Autowired public  EmbeddedUserService(final UserRepository userRepository, final SecureRandom secureRandom)
focal_class.identifier: EmbeddedUserService
focal_class.modifiers: @Autowired public
focal_class.parameters: (final UserRepository userRepository, final SecureRandom secureRandom)
focal_class.signature:  EmbeddedUserService(final UserRepository userRepository, final SecureRandom secureRandom)
focal_class.class_method_signature: EmbeddedUserService.save(final UserEntity userEntity)
focal_class.full_signature: @Override public void save(final UserEntity userEntity)
focal_class.identifier: save
focal_class.modifiers: @Override public
focal_class.parameters: (final UserEntity userEntity)
focal_class.return: void
focal_class.signature: void save(final UserEntity userEntity)
focal_class.class_method_signature: EmbeddedUserService.getById(final UUID key)
focal_class.full_signature: @Override public UserEntity getById(final UUID key)
focal_class.identifier: getById
focal_class.modifiers: @Override public
focal_class.parameters: (final UUID key)
focal_class.return: UserEntity
focal_class.signature: UserEntity getById(final UUID key)
focal_class.class_method_signature: EmbeddedUserService.containsKey(final UUID key)
focal_class.full_signature: @Override public boolean containsKey(final UUID key)
focal_class.identifier: containsKey
focal_class.modifiers: @Override public
focal_class.parameters: (final UUID key)
focal_class.return: boolean
focal_class.signature: boolean containsKey(final UUID key)
focal_class.class_method_signature: EmbeddedUserService.containsName(final String name)
focal_class.full_signature: @Override public boolean containsName(final String name)
focal_class.identifier: containsName
focal_class.modifiers: @Override public
focal_class.parameters: (final String name)
focal_class.return: boolean
focal_class.signature: boolean containsName(final String name)
focal_class.class_method_signature: EmbeddedUserService.findByName(final String name)
focal_class.full_signature: @Override public UserEntity findByName(final String name)
focal_class.identifier: findByName
focal_class.modifiers: @Override public
focal_class.parameters: (final String name)
focal_class.return: UserEntity
focal_class.signature: UserEntity findByName(final String name)
focal_class.class_method_signature: EmbeddedUserService.encrypt(final String raw)
focal_class.full_signature: @Override public String encrypt(final String raw)
focal_class.identifier: encrypt
focal_class.modifiers: @Override public
focal_class.parameters: (final String raw)
focal_class.return: String
focal_class.signature: String encrypt(final String raw)
focal_class.class_method_signature: EmbeddedUserService.matches(final String raw, final String encoded)
focal_class.full_signature: @Override public boolean matches(final String raw, final String encoded)
focal_class.identifier: matches
focal_class.modifiers: @Override public
focal_class.parameters: (final String raw, final String encoded)
focal_class.return: boolean
focal_class.signature: boolean matches(final String raw, final String encoded)
focal_class.class_method_signature: EmbeddedUserService.count()
focal_class.full_signature: @Override public long count()
focal_class.identifier: count
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long count()
focal_method.body: @Override
      public UserEntity getById(final UUID key) {
          return userRepository.findOne(key);
      }
focal_method.class_method_signature: EmbeddedUserService.getById(final UUID key)
focal_method.full_signature: @Override public UserEntity getById(final UUID key)
focal_method.identifier: getById
focal_method.invocations: findOne
focal_method.modifiers: @Override public
focal_method.parameters: (final UUID key)
focal_method.return: UserEntity
focal_method.signature: UserEntity getById(final UUID key)