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

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


                                                 String jvmRoute)
   {     
      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);
     
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();
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

     
      distributedManagerFactory.setPojoCache(cache);
      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);
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);
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);
     
View Full Code Here

TOP

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

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.