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 saveTest() throws Exception {
          KeyStorePasswordDTO keyStorePasswordDTO1 = new KeyStorePasswordDTO("0123456789");
          KeyStorePasswordDTO keyStorePasswordDTO2 = new KeyStorePasswordDTO("9876543210");
          KeyStorePasswordDTO savedKeyStorePasswordDTO1 = keyStorePasswordService
                  .save(keyStorePasswordDTO1);
          KeyStorePasswordDTO savedKeyStorePasswordDTO2 = keyStorePasswordService
                  .save(keyStorePasswordDTO2);
  
          assertEquals(savedKeyStorePasswordDTO1.getPass(), savedKeyStorePasswordDTO2.getPass());
  
      }
test_case.class_method_signature: KeyStorePasswordServiceImplTest.saveTest()
test_case.full_signature: @Test public void saveTest()
test_case.identifier: saveTest
test_case.invocations: save save assertEquals getPass getPass
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void saveTest()
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 save(KeyStorePasswordDTO passwordDTO) {
          List<KeyStorePasswordDTO> keyStorePasswordDTOs = getAllPasswords();
          if (keyStorePasswordDTOs.size() > 0) {
              return keyStorePasswordDTOs.get(0);
          }
          KeyStorePassword password = transformer.keyStorePasswordDTOToEntity(passwordDTO);
          return transformer.keyStorePasswordEntityToDTO(repository.save(password));
      }
focal_method.class_method_signature: KeyStorePasswordServiceImpl.save(KeyStorePasswordDTO passwordDTO)
focal_method.full_signature: @Override public KeyStorePasswordDTO save(KeyStorePasswordDTO passwordDTO)
focal_method.identifier: save
focal_method.invocations: getAllPasswords size get keyStorePasswordDTOToEntity keyStorePasswordEntityToDTO save
focal_method.modifiers: @Override public
focal_method.parameters: (KeyStorePasswordDTO passwordDTO)
focal_method.return: KeyStorePasswordDTO
focal_method.signature: KeyStorePasswordDTO save(KeyStorePasswordDTO passwordDTO)