Package org.jboss.test.cluster.web.mocks

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


      DataSourcePersistentManager mgr = new DataSourcePersistentManager(getDataSource());
      mgr.setSnapshotMode(SnapshotMode.INSTANT);
     
      MockEngine engine = new MockEngine();
      engine.setJvmRoute(jvmRoute);
      MockHost host = new MockHost();
      host.setName("localhost");
      engine.addChild(host);
      StandardContext container = new StandardContext();
      container.setName(warName);
      host.addChild(container);
      container.setManager(mgr);
     
      // Do this after assigning the manager to the container, or else
      // the container's setting will override ours
      // Can't just set the container as their config is per minute not per second
View Full Code Here


   private Context getContext(String contextPath, String cookiePath,
                              String cookieComment, String cookieDomain,
                              boolean httpOnly, boolean secure)
   {
      MockEngine engine = new MockEngine();
      MockHost host = new MockHost();
      host.setName("localhost");
      engine.addChild(host);
      StandardContext container = new StandardContext();
      container.setPath(contextPath);
      host.addChild(container);
     
      SessionCookie cookie = container.getSessionCookie();
      if (cookiePath != null)
         cookie.setPath(cookiePath);
      if (cookieComment != null)
View Full Code Here

   public static void setupContainer(String warName, String jvmRoute, Manager mgr)
   {
      MockEngine engine = new MockEngine();
      engine.setName("jboss.web");
      engine.setJvmRoute(jvmRoute);
      MockHost host = new MockHost();
      host.setName("localhost");
      engine.addChild(host);
      StandardContext container = new StandardContext();
      container.setName(warName);
      host.addChild(container);
      container.setManager(mgr);
   }
View Full Code Here

      JBossCacheManager jbcm = new JBossCacheManager(distributedManagerFactory);
      jbcm.setSnapshotMode(SnapshotMode.INSTANT);
     
      MockEngine engine = new MockEngine();
      engine.setJvmRoute(jvmRoute);
      MockHost host = new MockHost();
      engine.addChild(host);
      host.setName("localhost");
      StandardContext container = new StandardContext();
      container.setName(warName);
      host.addChild(container);
      container.setManager(jbcm);
     
      // Do this after assigning the manager to the container, or else
      // the container's setting will override ours
      // Can't just set the container as their config is per minute not per second
View Full Code Here

  
   private Manager getSessionManager(String contextName)
   {
      StandardManager mgr = new StandardManager();
      MockEngine engine = new MockEngine();
      MockHost host = new MockHost();
      engine.addChild(host);
      host.setName("localhost");
      StandardContext container = new StandardContext();
      container.setName(contextName);
      host.addChild(container);
      container.setManager(mgr);
     
      return mgr;
   }
View Full Code Here

   private Context getContext(String contextPath, String cookiePath,
                              String cookieComment, String cookieDomain,
                              boolean httpOnly, boolean secure)
   {
      MockEngine engine = new MockEngine();
      MockHost host = new MockHost();
      engine.addChild(host);
      host.setName("localhost");
      StandardContext container = new StandardContext();
      container.setPath(contextPath);
      host.addChild(container);
     
      SessionCookie cookie = container.getSessionCookie();
      if (cookiePath != null)
         cookie.setPath(cookiePath);
      if (cookieComment != null)
View Full Code Here

TOP

Related Classes of org.jboss.test.cluster.web.mocks.MockHost

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.