Package com.github.dactiv.common.test.entity

Examples of com.github.dactiv.common.test.entity.User


 
  private User user;
 
  @Before
  public void reloadUser() {
    user = new User();
  }
View Full Code Here


    json = JacksonBundle.nonNullMapper().toJson(user);
    assertTrue(StringUtils.contains(json,"\"groupsList\""));
    assertTrue(StringUtils.contains(json,"\"groupNames\""));
   
    //测试初始值被改变的json user.setGroupsList(new ArrayList<Group>());
    user = new User();
    json = JacksonBundle.nonDefaultMapper().toJson(user);
    assertTrue(StringUtils.contains(json,"{}"));
   
    user.setEmail("maurice@es.com");
    user.setUsername("maurice");
View Full Code Here

 
  private User user;
 
  @Before
  public void initData() {
    user = new User();
  }
View Full Code Here

TOP

Related Classes of com.github.dactiv.common.test.entity.User

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.