Examples of countGroupsOfBGContext()


Examples of org.olat.group.context.BGContextManager.countGroupsOfBGContext()

    BGContext c1 = bgcm.createAndPersistBGContext("c1name", "c1desc", BusinessGroup.TYPE_LEARNINGROUP, null, true);
    BGContext c2 = bgcm.createAndPersistBGContext("c2name", "c2desc", BusinessGroup.TYPE_LEARNINGROUP, id1, false);

    DBFactory.getInstance().closeSession(); // simulate user clicks
    assertTrue(bgcm.getGroupsOfBGContext(c1).size() == 0);
    assertTrue(bgcm.countGroupsOfBGContext(c1) == 0);

    DBFactory.getInstance().closeSession(); // simulate user clicks
    BusinessGroup g1 = bgm.createAndPersistBusinessGroup(BusinessGroup.TYPE_LEARNINGROUP, null, "g1", null, new Integer(0),
        new Integer(10), false, false, c1);
    assertNotNull(g1);
View Full Code Here

Examples of org.olat.group.context.BGContextManager.countGroupsOfBGContext()

        new Integer(10), false, false, c2);
    assertNotNull(g4); // name douplicate in other context allowed

    DBFactory.getInstance().closeSession(); // simulate user clicks
    assertTrue(bgcm.getGroupsOfBGContext(c1).size() == 2);
    assertTrue(bgcm.countGroupsOfBGContext(c1) == 2);
  }

  /** BGContext2ResourceManager tests */
  public void testFindContextMethods() {
    BGContextManager cm = BGContextManagerImpl.getInstance();
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.