Package org.dozer.vo.runtimesubclass

Examples of org.dozer.vo.runtimesubclass.UserPrime


    // User in SpecialUserGroup
    User user = newInstance(User.class);
    user.setUserGroup(userGroup);

    // do mapping to UserPrime
    UserPrime userPrime = mapper.map(user, UserPrime.class);

    // check class type of mapped group, should be SpecialUserGroupPrime!
    assertNotNull(userPrime.getUserGroup());
    assertEquals("special user group", userPrime.getUserGroup().getName());
    assertEquals(SpecialUserGroupPrime.class, userPrime.getUserGroup().getClass());
  }
View Full Code Here


    // User in normal UserGroup
    User user = newInstance(User.class);
    user.setUserGroup(userGroup);

    // do mapping to UserPrime
    UserPrime userPrime = mapper.map(user, UserPrime.class);

    // check class type of mapped group, should NOT be SpecialUserGroupPrime!
    assertNotNull(userPrime.getUserGroup());
    assertFalse(userPrime.getUserGroup() instanceof SpecialUserGroupPrime);
  }
View Full Code Here

    // User in SpecialUserGroup
    User user = newInstance(User.class);
    user.setUserGroup(userGroup);

    // do mapping to UserPrime
    UserPrime userPrime = mapper.map(user, UserPrime.class);

    // check class type of mapped group, should be SpecialUserGroupPrime!
    assertNotNull(userPrime.getUserGroup());
    assertEquals("special user group", userPrime.getUserGroup().getName());
    assertEquals(SpecialUserGroupPrime.class, userPrime.getUserGroup().getClass());
  }
View Full Code Here

    // User in normal UserGroup
    User user = newInstance(User.class);
    user.setUserGroup(userGroup);

    // do mapping to UserPrime
    UserPrime userPrime = mapper.map(user, UserPrime.class);

    // check class type of mapped group, should NOT be SpecialUserGroupPrime!
    assertNotNull(userPrime.getUserGroup());
    assertFalse(userPrime.getUserGroup() instanceof SpecialUserGroupPrime);
  }
View Full Code Here

TOP

Related Classes of org.dozer.vo.runtimesubclass.UserPrime

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.