Package org.beangle.ems.security.model

Examples of org.beangle.ems.security.model.GroupBean


    field.setPropertyNames("name");
  }

  public void testMarshal() {
    String text = resolver.marshal(field,
        CollectUtils.newArrayList(new GroupBean(1L, "group1"), new GroupBean(2L, "group2")));
    assertEquals(text, "id;name,1;group1,2;group2");
  }
View Full Code Here


    assertEquals(text, "id;name,1;group1,2;group2");
  }

  public void testUnmarshal() throws Exception {
    List<?> rs = resolver.unmarshal(field, "id;name,1;group1,2;group2");
    List<?> objs = CollectUtils.newArrayList(new GroupBean(1L, "group1"), new GroupBean(2L, "group2"));
    assertEquals(rs, objs);
  }
View Full Code Here

    Map<?, ?> params = query.getParams();
    Assert.assertEquals(statement, "select user from org.beangle.ems.security.User user "
        + "where ((exists(from user.groups as g where g.group in(:groups0))))");
    Assert.assertNotNull(params);
    Assert.assertEquals(params.size(), 1);
    Assert.assertEquals(params.get("groups0"), CollectUtils.newArrayList(new GroupBean(1L, "group1")));
  }
View Full Code Here

TOP

Related Classes of org.beangle.ems.security.model.GroupBean

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.