Package com.inspiresoftware.lib.dto.geda.assembler.examples.autowire

Examples of com.inspiresoftware.lib.dto.geda.assembler.examples.autowire.TestDto8AutowireNameClass


  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());
View Full Code Here

TOP

Related Classes of com.inspiresoftware.lib.dto.geda.assembler.examples.autowire.TestDto8AutowireNameClass

Copyright © 2018 www.massapicom. 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.