Package org.gatein.pc.test.controller.unit

Examples of org.gatein.pc.test.controller.unit.PageNavigationalStateSerialization


      //
      this.portletInvoker = (PortletInvoker)servletContext.getAttribute("ConsumerPortletInvoker");
      this.stateControllerContext = new StateControllerContextImpl();
      this.eventControllerContext = new EventControllerContextImpl(portletInvoker);
      this.serialization = new PageNavigationalStateSerialization(stateControllerContext);
   }
View Full Code Here


      assertMarshallable(pageNS);
   }

   private void assertMarshallable(PageNavigationalState pageNS)
   {
      byte[] bytes = IOTools.serialize(new PageNavigationalStateSerialization(cc), /*SerializationFilter.COMPRESSOR, */pageNS);
      PageNavigationalState expectedPageNS = IOTools.unserialize(new PageNavigationalStateSerialization(cc), /*SerializationFilter.COMPRESSOR, */bytes);
      assertEquals(expectedPageNS.getWindowIds(), pageNS.getWindowIds());
      for (String windowId : expectedPageNS.getWindowIds())
      {
         WindowNavigationalState windowNS = expectedPageNS.getWindowNavigationalState(windowId);
         WindowNavigationalState expectedWindowNS = pageNS.getWindowNavigationalState(windowId);
View Full Code Here

TOP

Related Classes of org.gatein.pc.test.controller.unit.PageNavigationalStateSerialization

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.