Package de.nava.informa.utils

Examples of de.nava.informa.utils.PersistChanGrpMgr.activate()


              Channel theChan = (Channel) entry.theItem.getChannel();
              theGrp.deActivate();
              int before = theGrp.getItemCount(theChan);
              int after = theGrp.deleteItemFromChannel(theChan, entry.theItem);

              if (getActiveSemaphor()) theGrp.activate();
              logger.debug("Deleted. Count before =" + before + " /after: " + after);
              assertEquals("Not the rigth number of items", before, after + 1);

              entry.deleted = true;
              foundOne = true;
View Full Code Here


   
    assertFalse("expected group 1 to be inactive", group1.isActivated());
    assertFalse("expected group 2 to be inactive", group2.isActivated());
    assertFalse("expected group 3 to be inactive", group3.isActivated());
   
    group1.activate();
    assertTrue("expected group 1 to be active", group1.isActivated());
    assertFalse("expected group 2 to be inactive", group2.isActivated());
    assertFalse("expected group 3 to be inactive", group3.isActivated());

    Thread.sleep(500);
View Full Code Here

    PersistChanGrpMgr groupStopStart;
    groupStopStart = makeEmptyGroup("stopStartGroup");

    // Start and stop a few times
    for (int i = 0; i < 2; i++) {
      groupStopStart.activate();
      assertTrue("Channel Group is supposed to be activated", groupStopStart.isActivated());
      groupStopStart.deActivate(true);
      assertFalse("ChannelGroup is not supposed to be activated", groupStopStart.isActivated());
      Thread.sleep(500);
    }
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.