test_class.file: storage-service/src/test/java/com/stnetix/ariaddna/persistence/transformers/MetatableTransformerTest.java
test_class.identifier: MetatableTransformerTest
test_case.body: @Test
      public void metafileDTOtoEntity() throws Exception {
          MetatableTransformer metatableTransformer = new MetatableTransformer();
  
          MetatableDTO metatableDTO = TestHelper
                  .getMetatableDTO(UUID.randomUUID().toString(), "0.0.0", MetatableType.MASTER,
                          new DateTime().getTimeInMillisec());
  
          MetatableEntity metatableEntity = metatableTransformer.metafileDTOtoEntity(metatableDTO);
  
          assertEquals(metatableEntity.getType(), metatableDTO.getType());
          assertEquals(metatableEntity.getVersion(), metatableDTO.getVersion());
          assertEquals(metatableEntity.getUuid(), metatableDTO.getUuid());
          assertEquals(metatableEntity.getLastUpdateTimestamp(),
                  metatableDTO.getLastUpdateTimestamp());
  
          MetafileDTO[] metafileDTOs = new MetafileDTO[metatableDTO.getMetafileSet().size()];
          metatableDTO.getMetafileSet().toArray(metafileDTOs);
  
          MetafileEntity[] metafileEntities = new MetafileEntity[metatableEntity.getMetafileSet()
                  .size()];
          metatableEntity.getMetafileSet().toArray(metafileEntities);
  
          assertEquals(metafileDTOs.length, metafileEntities.length);
  
          int countEquals = compareMetafileDTOAndEntitySet(metatableDTO.getMetafileSet(),
                  metatableEntity.getMetafileSet());
          assertEquals(countEquals, metafileDTOs.length);
      }
test_case.class_method_signature: MetatableTransformerTest.metafileDTOtoEntity()
test_case.full_signature: @Test public void metafileDTOtoEntity()
test_case.identifier: metafileDTOtoEntity
test_case.invocations: getMetatableDTO toString randomUUID getTimeInMillisec metafileDTOtoEntity assertEquals getType getType assertEquals getVersion getVersion assertEquals getUuid getUuid assertEquals getLastUpdateTimestamp getLastUpdateTimestamp size getMetafileSet toArray getMetafileSet size getMetafileSet toArray getMetafileSet assertEquals compareMetafileDTOAndEntitySet getMetafileSet getMetafileSet assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void metafileDTOtoEntity()
focal_class.declarator: metafileTransformer
focal_class.modifier: private
focal_class.original_string: private MetafileTransformer metafileTransformer;
focal_class.type: MetafileTransformer
focal_class.var_name: metafileTransformer
focal_class.file: storage-service/src/main/java/com/stnetix/ariaddna/persistence/transformers/MetatableTransformer.java
focal_class.identifier: MetatableTransformer
focal_class.class_method_signature: MetatableTransformer.MetatableTransformer()
focal_class.full_signature: public  MetatableTransformer()
focal_class.identifier: MetatableTransformer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  MetatableTransformer()
focal_class.class_method_signature: MetatableTransformer.metafileEntityToDTO(MetatableEntity metatableEntity)
focal_class.full_signature: public MetatableDTO metafileEntityToDTO(MetatableEntity metatableEntity)
focal_class.identifier: metafileEntityToDTO
focal_class.modifiers: public
focal_class.parameters: (MetatableEntity metatableEntity)
focal_class.return: MetatableDTO
focal_class.signature: MetatableDTO metafileEntityToDTO(MetatableEntity metatableEntity)
focal_class.class_method_signature: MetatableTransformer.metafileDTOtoEntity(MetatableDTO metatableDTO)
focal_class.full_signature: public MetatableEntity metafileDTOtoEntity(MetatableDTO metatableDTO)
focal_class.identifier: metafileDTOtoEntity
focal_class.modifiers: public
focal_class.parameters: (MetatableDTO metatableDTO)
focal_class.return: MetatableEntity
focal_class.signature: MetatableEntity metafileDTOtoEntity(MetatableDTO metatableDTO)
focal_method.body: public MetatableEntity metafileDTOtoEntity(MetatableDTO metatableDTO) {
          MetatableEntity metatableEntity = new MetatableEntity();
  
          metatableEntity.setUuid(metatableDTO.getUuid() != null ? metatableDTO.getUuid() : null);
          metatableEntity.setType(
                  metatableDTO.getType() != null ? metatableDTO.getType() : null);
  
          Set<MetafileEntity> metafileEntitySet = new HashSet<>();
          metatableDTO.getMetafileSet().forEach(metafileDTO -> metafileEntitySet
                  .add(metafileTransformer.metafileDTOtoEntity(metafileDTO)));
          metatableEntity.setMetafileSet(metafileEntitySet);
  
          metatableEntity.setLastUpdateTimestamp(metatableDTO.getLastUpdateTimestamp() != null ?
                  metatableDTO.getLastUpdateTimestamp() : null);
          metatableEntity.setVersion(metatableDTO.getVersion() != null ? metatableDTO.getVersion() :
                  null);
          return metatableEntity;
      }
focal_method.class_method_signature: MetatableTransformer.metafileDTOtoEntity(MetatableDTO metatableDTO)
focal_method.full_signature: public MetatableEntity metafileDTOtoEntity(MetatableDTO metatableDTO)
focal_method.identifier: metafileDTOtoEntity
focal_method.invocations: setUuid getUuid getUuid setType getType getType forEach getMetafileSet add metafileDTOtoEntity setMetafileSet setLastUpdateTimestamp getLastUpdateTimestamp getLastUpdateTimestamp setVersion getVersion getVersion
focal_method.modifiers: public
focal_method.parameters: (MetatableDTO metatableDTO)
focal_method.return: MetatableEntity
focal_method.signature: MetatableEntity metafileDTOtoEntity(MetatableDTO metatableDTO)