test_class.declarator: keyStorePasswordService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private IKeyStorePasswordService keyStorePasswordService;
test_class.type: IKeyStorePasswordService
test_class.var_name: keyStorePasswordService
test_class.file: storage-service/src/test/java/com/stnetix/ariaddna/persistence/services/KeyStorePasswordServiceImplTest.java
test_class.identifier: KeyStorePasswordServiceImplTest
test_case.body: @Test
      public void getPasswordTest() throws Exception {
          KeyStorePasswordDTO keyStorePasswordDTO1 = new KeyStorePasswordDTO("0123456789");
          KeyStorePasswordDTO keyStorePasswordDTO2 = new KeyStorePasswordDTO("9876543210");
          KeyStorePasswordDTO savedKeyStorePasswordDTO1 = keyStorePasswordService
                  .save(keyStorePasswordDTO1);
          KeyStorePasswordDTO savedKeyStorePasswordDTO2 = keyStorePasswordService
                  .save(keyStorePasswordDTO2);
          KeyStorePasswordDTO keyStorePasswordDTO = keyStorePasswordService.getPassword();
  
          assertEquals(keyStorePasswordDTO.getPass(), savedKeyStorePasswordDTO1.getPass());
          assertEquals(keyStorePasswordDTO.getPass(), savedKeyStorePasswordDTO2.getPass());
  
      }
test_case.class_method_signature: KeyStorePasswordServiceImplTest.getPasswordTest()
test_case.full_signature: @Test public void getPasswordTest()
test_case.identifier: getPasswordTest
test_case.invocations: save save getPassword assertEquals getPass getPass assertEquals getPass getPass
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getPasswordTest()
focal_class.declarator: transformer
focal_class.modifier: private
focal_class.original_string: private KeyStorePasswordTransformer transformer;
focal_class.type: KeyStorePasswordTransformer
focal_class.var_name: transformer
focal_class.declarator: repository
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private KeyStorePasswordRepository repository;
focal_class.type: KeyStorePasswordRepository
focal_class.var_name: repository
focal_class.file: storage-service/src/main/java/com/stnetix/ariaddna/persistence/services/KeyStorePasswordServiceImpl.java
focal_class.identifier: KeyStorePasswordServiceImpl
focal_class.interfaces: implements IKeyStorePasswordService
focal_class.class_method_signature: KeyStorePasswordServiceImpl.KeyStorePasswordServiceImpl()
focal_class.full_signature: public  KeyStorePasswordServiceImpl()
focal_class.identifier: KeyStorePasswordServiceImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  KeyStorePasswordServiceImpl()
focal_class.class_method_signature: KeyStorePasswordServiceImpl.save(KeyStorePasswordDTO passwordDTO)
focal_class.full_signature: @Override public KeyStorePasswordDTO save(KeyStorePasswordDTO passwordDTO)
focal_class.identifier: save
focal_class.modifiers: @Override public
focal_class.parameters: (KeyStorePasswordDTO passwordDTO)
focal_class.return: KeyStorePasswordDTO
focal_class.signature: KeyStorePasswordDTO save(KeyStorePasswordDTO passwordDTO)
focal_class.class_method_signature: KeyStorePasswordServiceImpl.getPassword()
focal_class.full_signature: @Override public KeyStorePasswordDTO getPassword()
focal_class.identifier: getPassword
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: KeyStorePasswordDTO
focal_class.signature: KeyStorePasswordDTO getPassword()
focal_class.class_method_signature: KeyStorePasswordServiceImpl.getAllPasswords()
focal_class.full_signature: private List<KeyStorePasswordDTO> getAllPasswords()
focal_class.identifier: getAllPasswords
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: List<KeyStorePasswordDTO>
focal_class.signature: List<KeyStorePasswordDTO> getAllPasswords()
focal_method.body: @Override
      public KeyStorePasswordDTO getPassword() {
          List<KeyStorePasswordDTO> keyStorePasswordDTOList = getAllPasswords();
          if (keyStorePasswordDTOList.size() == 0) {
              KeyStorePasswordDTO newKeyStorePasswordDTO = new KeyStorePasswordDTO(
                      UUID.randomUUID().toString());
              return save(newKeyStorePasswordDTO);
          }
          return keyStorePasswordDTOList.get(0);
      }
focal_method.class_method_signature: KeyStorePasswordServiceImpl.getPassword()
focal_method.full_signature: @Override public KeyStorePasswordDTO getPassword()
focal_method.identifier: getPassword
focal_method.invocations: getAllPasswords size toString randomUUID save get
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: KeyStorePasswordDTO
focal_method.signature: KeyStorePasswordDTO getPassword()