Package ma.glasnost.orika.test.common.types.TestCaseClasses

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


    @Test
    public void testBaseCaseWithCollectionTypes() {
     
      List<Book> books = new ArrayList<Book>(4);
     
      Author author1 = new AuthorImpl("Author #1");
      Author author2 = new AuthorImpl("Author #2");
     
      books.add(new BookImpl("Book #1", author1));
      books.add(new BookImpl("Book #2", author1));
      books.add(new BookImpl("Book #3", author2));
      books.add(new BookImpl("Book #4", author2));
View Full Code Here


 
 
  @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

    @Test
    public void testBaseCaseWithCollectionTypes() {
     
      List<Book> books = new ArrayList<Book>(4);
     
      Author author1 = new AuthorImpl("Author #1");
      Author author2 = new AuthorImpl("Author #2");
     
      books.add(new BookImpl("Book #1", author1));
      books.add(new BookImpl("Book #2", author1));
      books.add(new BookImpl("Book #3", author2));
      books.add(new BookImpl("Book #4", author2));
View Full Code Here

TOP

Related Classes of ma.glasnost.orika.test.common.types.TestCaseClasses.Author

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.