Examples of AuthorDTO


Examples of ma.glasnost.orika.test.common.types.TestCaseClasses.AuthorDTO

  @Test
  public void testExtendedMapper() {
    MyMapperFactory factory = new MyMapperFactory.Builder().useAutoMapping(true).traceMethodCalls(true).build();
    Author author = new AuthorImpl("Test Author");
   
    AuthorDTO mapped = factory.getMapperFacade().map(author, AuthorDTO.class);
    Assert.assertNotNull(mapped);
    Assert.assertEquals(author.getName(), mapped.getName());
  }
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.