Package org.exoplatform.commons.utils

Examples of org.exoplatform.commons.utils.PageList.currentPage()


      assertEquals("Expect profile is updated: user.gender is ", "male", userProfile.getUserInfoMap()
         .get("user.gender"));

      PageList piterator = userHandler_.getUserPageList(10);
      // newly created 'test' and 'demo'
      assertEquals(2, piterator.currentPage().size());

//      membershipHandler_.removeMembershipByUser(USER,false);
      userHandler_.removeUser(USER, true);
      piterator = userHandler_.getUserPageList(10);
      // one 'demo'
View Full Code Here


//      membershipHandler_.removeMembershipByUser(USER,false);
      userHandler_.removeUser(USER, true);
      piterator = userHandler_.getUserPageList(10);
      // one 'demo'
      assertEquals(1, piterator.currentPage().size());
      assertNull("User: USER is removed: ", userHandler_.findUserByName(USER));
      assertNull(" user's profile of USER was removed:", profileHandler_.findUserProfileByName(USER));
   }

   public void testUniqueAttribute() throws Exception
View Full Code Here

      assertEquals("Expect profile is updated: user.gender is ", "male", userProfile.getUserInfoMap()
         .get("user.gender"));

      PageList piterator = userHandler_.getUserPageList(10);
      // newly created 'test' and 'demo'
      assertEquals(2, piterator.currentPage().size());

      userHandler_.removeUser(USER, true);
      piterator = userHandler_.getUserPageList(10);
      // one 'demo'
      assertEquals(1, piterator.currentPage().size());
View Full Code Here

      assertEquals(2, piterator.currentPage().size());

      userHandler_.removeUser(USER, true);
      piterator = userHandler_.getUserPageList(10);
      // one 'demo'
      assertEquals(1, piterator.currentPage().size());
      assertNull("User: USER is removed: ", userHandler_.findUserByName(USER));
      assertNull(" user's profile of USER was removed:", profileHandler_.findUserProfileByName(USER));
   }

   public void testGroup() throws Exception
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.