Examples of InvalidateSessionRequestHandler


Examples of org.jboss.as.web.session.mocks.InvalidateSessionRequestHandler

            validateNoNotifications(hsl0, hsal0, hsl1, hsal1, null);
            clearNotifications(null, null, null, null, SessionSpecListenerAttribute.invocations);
        }

        // Fail back and invalidate session after changing attribute
        InvalidateSessionRequestHandler invalidateHandler = new InvalidateSessionRequestHandler(newAttributes.keySet(), false);
        SessionTestUtil.invokeRequest(managers[0], invalidateHandler, sessionId);

        if (!notify) {
            validateNoNotifications(hsl0, hsal0, hsl1, hsal1);
        } else {
View Full Code Here

Examples of org.jboss.as.web.session.mocks.InvalidateSessionRequestHandler

        SessionTestUtil.cleanupPipeline(managers[0]);
        assertNotNull(session0C.get());
        assertEquals(2, Attribute.attributeCount());

        // Invalidate session
        InvalidateSessionRequestHandler invalidateHandler = new InvalidateSessionRequestHandler(KEYS, false);
        log.info("invalidate request");
        SessionTestUtil.invokeRequest(managers[0], invalidateHandler, sessionId);
        SessionTestUtil.cleanupPipeline(managers[0]);

        System.gc();
View Full Code Here

Examples of org.jboss.as.web.session.mocks.InvalidateSessionRequestHandler

        validateNewSession(setHandler);
        String id = setHandler.getSessionId();
        assertEquals(1, manager.getActiveSessionCount());
        assertEquals(0, manager.getPassivatedSessionCount());

        InvalidateSessionRequestHandler invalHandler = new InvalidateSessionRequestHandler(attrs.keySet(), false);
        try {
            SessionTestUtil.invokeRequest(manager, invalHandler, id);
            fail("Invalidation not rejected");
        } catch (RejectedException ok) {
        }
View Full Code Here

Examples of org.jboss.as.web.session.mocks.InvalidateSessionRequestHandler

        assertEquals(getAttributeValue(2), setHandler.getCheckedAttributes().get("count"));

        this.log.info("Invalidate request to manager[0]");

        // Invalidate on the failover request
        InvalidateSessionRequestHandler invalidationHandler = new InvalidateSessionRequestHandler(
                Collections.singleton("count"), false);
        invokeRequest(managers[0], invalidationHandler, id);
        assertEquals(getAttributeValue(3), invalidationHandler.getCheckedAttributes().get("count"));

        setHandler = new SetAttributesRequestHandler(Collections.singletonMap("count", getAttributeValue(0)), false);
        invokeRequest(managers[0], invalidationHandler, id);
        assertNull(setHandler.getCheckedAttributes().get("count"));
    }
View Full Code Here

Examples of org.jboss.as.web.session.mocks.InvalidateSessionRequestHandler

        invokeRequest(managers[localIndex], setHandler, id);
        assertEquals(getAttributeValue(5), setHandler.getCheckedAttributes().get("count"));

        // Invalidate
        log.info("invalidating");
        InvalidateSessionRequestHandler invalidationHandler = new InvalidateSessionRequestHandler(
                Collections.singleton("count"), false);
        invokeRequest(managers[localIndex], invalidationHandler, id);
        assertEquals(getAttributeValue(6), invalidationHandler.getCheckedAttributes().get("count"));

        // Reestablish
        log.info("re-establishing");
        setHandler = new SetAttributesRequestHandler(Collections.singletonMap("count", getAttributeValue(0)), false);
        invokeRequest(managers[localIndex], invalidationHandler, id);
View Full Code Here

Examples of org.jboss.test.cluster.web.mocks.InvalidateSessionRequestHandler

      validateNewSession(setHandler);
      String id = setHandler.getSessionId();
      assertEquals(1, manager.getActiveSessionCount());
      assertEquals(0, manager.getPassivatedSessionCount());
     
      InvalidateSessionRequestHandler invalHandler = new InvalidateSessionRequestHandler(attrs.keySet(), false);
      try
      {
         SessionTestUtil.invokeRequest(manager, invalHandler, id);
         fail("Invalidation not rejected");
      }
View Full Code Here

Examples of org.jboss.test.cluster.web.mocks.InvalidateSessionRequestHandler

         validateNoNotifications(hsl0, hsal0, hsl1, hsal1, null);
         clearNotifications(null, null, null, null, SessionSpecListenerAttribute.invocations);
      }
     
      // Fail back and invalidate session after changing attribute
      InvalidateSessionRequestHandler invalidateHandler = new InvalidateSessionRequestHandler(newAttributes.keySet(), false);
      SessionTestUtil.invokeRequest(mgr0, invalidateHandler, sessionId);
     
      if (!notify)
      {
         validateNoNotifications(hsl0, hsal0, hsl1, hsal1);
View Full Code Here

Examples of org.jboss.test.cluster.web.mocks.InvalidateSessionRequestHandler

         validateNoNotifications(hsl0, hsal0, hsl1, hsal1, null);
         clearNotifications(null, null, null, null, SessionSpecListenerAttribute.invocations);
      }
     
      // Fail back and invalidate session after changing attribute
      InvalidateSessionRequestHandler invalidateHandler = new InvalidateSessionRequestHandler(newAttributes.keySet(), false);
      SessionTestUtil.invokeRequest(managers[0], invalidateHandler, sessionId);
     
      if (!notify)
      {
         validateNoNotifications(hsl0, hsal0, hsl1, hsal1);
View Full Code Here

Examples of org.jboss.test.cluster.web.mocks.InvalidateSessionRequestHandler

      SessionTestUtil.cleanupPipeline(mgr0);
      assertNotNull(session0C.get());
      assertAttributeCount(2);  
     
      // Invalidate session
      InvalidateSessionRequestHandler invalidateHandler = new InvalidateSessionRequestHandler(KEYS, false);
      log.info("invalidate request");
      SessionTestUtil.invokeRequest(mgr0, invalidateHandler, sessionId);
      SessionTestUtil.cleanupPipeline(mgr0);
     
      cleanHeap();
View Full Code Here

Examples of org.jboss.test.cluster.web.mocks.InvalidateSessionRequestHandler

      SessionTestUtil.cleanupPipeline(managers[0]);
      assertNotNull(session0C.get());
      assertEquals(2, Attribute.attributeCount());  
     
      // Invalidate session
      InvalidateSessionRequestHandler invalidateHandler = new InvalidateSessionRequestHandler(KEYS, false);
      log.info("invalidate request");
      SessionTestUtil.invokeRequest(managers[0], invalidateHandler, sessionId);
      SessionTestUtil.cleanupPipeline(managers[0]);
     
      System.gc();
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.