Examples of fromEntity()


Examples of com.inspiresoftware.lib.dto.geda.benchmark.Mapper.fromEntity()

        final PersonDTO dto = getDto();

        final Mapper mapper = new DozerBasicMapper();

        assertEquals(entity, mapper.fromDto(dto));
        assertEquals(dto, mapper.fromEntity(entity));

    }

}
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.benchmark.Mapper.fromEntity()

        assertEquals(entity, fromDto);
        assertNotNull(fromDto.getPreviousAddresses());
        assertEquals(2, fromDto.getPreviousAddresses().size());
        assertEquals(entity.getPreviousAddresses().get(0), fromDto.getPreviousAddresses().get(0));

        final PersonWithHistoryDTO fromEntity = (PersonWithHistoryDTO) mapper.fromEntity(entity);
        assertEquals(dto, fromEntity);
        assertNotNull(fromEntity.getPreviousAddresses());
        assertEquals(2, fromEntity.getPreviousAddresses().size());
        assertEquals(((PersonWithHistoryDTO) dto).getPreviousAddresses().get(0), fromEntity.getPreviousAddresses().get(0));
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.benchmark.Mapper.fromEntity()

        final PersonDTO dto = getDto();

        final Mapper mapper = new ModelMapperBasicMapper();

        assertEquals(entity, mapper.fromDto(dto));
        assertEquals(dto, mapper.fromEntity(entity));

    }

}
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.benchmark.Mapper.fromEntity()

        assertEquals(entity, fromDto);
        assertNotNull(fromDto.getPreviousAddresses());
        assertEquals(2, fromDto.getPreviousAddresses().size());
        assertEquals(entity.getPreviousAddresses().get(0), fromDto.getPreviousAddresses().get(0));

        final PersonWithHistoryDTO fromEntity = (PersonWithHistoryDTO) mapper.fromEntity(entity);
        assertEquals(dto, fromEntity);
        assertNotNull(fromEntity.getPreviousAddresses());
        assertEquals(2, fromEntity.getPreviousAddresses().size());
        assertEquals(((PersonWithHistoryDTO) dto).getPreviousAddresses().get(0), fromEntity.getPreviousAddresses().get(0));
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.benchmark.Mapper.fromEntity()

        final PersonDTO dto = getDto();

        final Mapper mapper = new ManualBasicMapper();

        assertEquals(entity, mapper.fromDto(dto));
        assertEquals(dto, mapper.fromEntity(entity));


    }
}
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.benchmark.Mapper.fromEntity()

        final PersonDTO dto = getDto();

        final Mapper mapper = new GeDABasicMapper();

        assertEquals(entity, mapper.fromDto(dto));
        assertEquals(dto, mapper.fromEntity(entity));

    }

    private static final int PERFORMANCE_TEST_CYCLES = 10000000;
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.benchmark.Mapper.fromEntity()

        final PersonDTO dto = getDtoWithHistory();

        final Mapper mapper = new GeDAListMapper();

        assertEquals(entity, mapper.fromDto(dto));
        assertEquals(dto, mapper.fromEntity(entity));

    }

    @Test
    @Ignore
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.benchmark.Mapper.fromEntity()

        final PersonDTO dto = getDtoWithHistoryByCity();

        final Mapper mapper = new GeDABasicMapper();

        assertEquals(entity, mapper.fromDto(dto));
        assertEquals(dto, mapper.fromEntity(entity));

    }

    @Test
    @Ignore
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.benchmark.Mapper.fromEntity()

        final PersonDTO dto = getDto();

        final Mapper mapper = new OrikaBasicMapper();

        assertEquals(entity, mapper.fromDto(dto));
        assertEquals(dto, mapper.fromEntity(entity));

    }

}
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.benchmark.Mapper.fromEntity()

        assertEquals(entity, fromDto);
        assertNotNull(fromDto.getPreviousAddresses());
        assertEquals(2, fromDto.getPreviousAddresses().size());
        assertEquals(entity.getPreviousAddresses().get(0), fromDto.getPreviousAddresses().get(0));

        final PersonWithHistoryDTO fromEntity = (PersonWithHistoryDTO) mapper.fromEntity(entity);
        assertEquals(dto, fromEntity);
        assertNotNull(fromEntity.getPreviousAddresses());
        assertEquals(2, fromEntity.getPreviousAddresses().size());
        assertEquals(((PersonWithHistoryDTO) dto).getPreviousAddresses().get(0), fromEntity.getPreviousAddresses().get(0));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.