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 metafileEntityToDTO() throws Exception {
          MetatableTransformer metatableTransformer = new MetatableTransformer();
  
          MetatableEntity metatableEntity = TestHelper.getMetatableEntity(MetatableType.MASTER);
  
          MetatableDTO metatableDTO = metatableTransformer.metafileEntityToDTO(metatableEntity);
  
          assertEquals(metatableDTO.getType(), metatableEntity.getType());
          assertEquals(metatableDTO.getVersion(), metatableEntity.getVersion());
          assertEquals(metatableDTO.getUuid(), metatableEntity.getUuid());
          assertEquals(metatableDTO.getLastUpdateTimestamp(),
                  metatableEntity.getLastUpdateTimestamp());
  
          assertEquals(metatableDTO.getMetafileSet().size(), metatableEntity.getMetafileSet()
                  .size());
  
          int countEquals = compareMetafileDTOAndEntitySet(metatableDTO.getMetafileSet(),
                  metatableEntity.getMetafileSet());
          assertEquals(countEquals, metatableDTO.getMetafileSet().size());
      }
test_case.class_method_signature: MetatableTransformerTest.metafileEntityToDTO()
test_case.full_signature: @Test public void metafileEntityToDTO()
test_case.identifier: metafileEntityToDTO
test_case.invocations: getMetatableEntity metafileEntityToDTO assertEquals getType getType assertEquals getVersion getVersion assertEquals getUuid getUuid assertEquals getLastUpdateTimestamp getLastUpdateTimestamp assertEquals size getMetafileSet size getMetafileSet compareMetafileDTOAndEntitySet getMetafileSet getMetafileSet assertEquals size getMetafileSet
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void metafileEntityToDTO()
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 MetatableDTO metafileEntityToDTO(MetatableEntity metatableEntity) {
          MetatableDTO metatableDTO = new MetatableDTO();
  
          metatableDTO.setUuid(metatableEntity.getUuid() != null ? metatableEntity.getUuid() : null);
          metatableDTO.setType(metatableEntity.getType() != null ?
                  metatableEntity.getType() :
                  null);
  
          Set<MetafileDTO> metafileDTOSet = new HashSet<>();
          metatableEntity.getMetafileSet().forEach(metafileEntity -> metafileDTOSet
                  .add(metafileTransformer.metafileEntityToDTO(metafileEntity)));
          metatableDTO.setMetafileSet(metafileDTOSet);
  
          metatableDTO.setLastUpdateTimestamp(metatableEntity.getLastUpdateTimestamp() != null ?
                  metatableEntity.getLastUpdateTimestamp() :
                  null);
          metatableDTO.setVersion(
                  metatableEntity.getVersion() != null ? metatableEntity.getVersion() : null);
          return metatableDTO;
      }
focal_method.class_method_signature: MetatableTransformer.metafileEntityToDTO(MetatableEntity metatableEntity)
focal_method.full_signature: public MetatableDTO metafileEntityToDTO(MetatableEntity metatableEntity)
focal_method.identifier: metafileEntityToDTO
focal_method.invocations: setUuid getUuid getUuid setType getType getType forEach getMetafileSet add metafileEntityToDTO setMetafileSet setLastUpdateTimestamp getLastUpdateTimestamp getLastUpdateTimestamp setVersion getVersion getVersion
focal_method.modifiers: public
focal_method.parameters: (MetatableEntity metatableEntity)
focal_method.return: MetatableDTO
focal_method.signature: MetatableDTO metafileEntityToDTO(MetatableEntity metatableEntity)