public void testAutowireNames() throws GeDAException {
final String name = "testName";
final String name2 = "testAnotherName";
final TestDto8AutowireNameClass dto = new TestDto8AutowireNameClass();
final TestEntity8AutowireNameClass entity = new TestEntity8AutowireNameClass();
entity.setName(name);
final Assembler assembler =
DTOAssembler.newCustomAssembler(TestDto8AutowireNameClass.class, TestEntity8AutowireNameClass.class, synthesizer);
assembler.assembleDto(dto, entity, null, null);
assertNotNull(dto.getName());
assertEquals(name, dto.getName());
dto.setName(name2);
assembler.assembleEntity(dto, entity, null, null);
assertNotNull(entity.getName());
assertEquals(name2, entity.getName());