Class VitamServerTestRunner


  • public class VitamServerTestRunner
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String LOCALHOST  
      static int MIN_PORT  
    • Constructor Summary

      Constructors 
      Constructor Description
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, boolean hasAuthorizationFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, boolean hasTenantFilter, boolean hasAuthorizationFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, boolean hasTenantFilter, boolean hasAuthorizationFilter, boolean hasSession)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, boolean hasTenantFilter, boolean hasAuthorizationFilter, boolean hasSession, boolean hasShiroFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, boolean hasTenantFilter, boolean hasAuthorizationFilter, boolean hasSession, boolean hasShiroFilter, boolean hasXsrFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, VitamClientFactoryInterface<?> factory)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, VitamClientFactoryInterface<?> factory, boolean hasAuthorizationFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, VitamClientFactoryInterface<?> factory, boolean hasTenantFilter, boolean hasAuthorizationFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, VitamClientFactoryInterface<?> factory, boolean hasTenantFilter, boolean hasAuthorizationFilter, boolean hasSession)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, VitamClientFactoryInterface<?> factory, boolean hasTenantFilter, boolean hasAuthorizationFilter, boolean hasSession, boolean hasShiroFilter, boolean hasXsrFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication, boolean hasAuthorizationFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication, boolean hasTenantFilter, boolean hasAuthorizationFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication, boolean hasTenantFilter, boolean hasAuthorizationFilter, boolean hasSession)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication, boolean hasTenantFilter, boolean hasAuthorizationFilter, boolean hasSession, boolean hasShiroFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication, boolean hasTenantFilter, boolean hasAuthorizationFilter, boolean hasSession, boolean hasShiroFilter, boolean hasXsrFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication, VitamClientFactoryInterface<?> factory)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication, VitamClientFactoryInterface<?> factory, boolean hasAuthorizationFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication, VitamClientFactoryInterface<?> factory, boolean hasTenantFilter, boolean hasAuthorizationFilter)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication, VitamClientFactoryInterface<?> factory, boolean hasTenantFilter, boolean hasAuthorizationFilter, boolean hasSession)  
      VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application, java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication, SslConfig configuration, VitamClientFactoryInterface<?> factory, boolean hasTenantFilter, boolean hasAuthorizationFilter, boolean hasSession, boolean hasShiroFilter, boolean hasXsrFilter)  
    • Constructor Detail

      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication,
                                     boolean hasAuthorizationFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter,
                                     boolean hasSession)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter,
                                     boolean hasSession,
                                     boolean hasShiroFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter,
                                     boolean hasSession,
                                     boolean hasShiroFilter,
                                     boolean hasXsrFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication,
                                     VitamClientFactoryInterface<?> factory)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication,
                                     VitamClientFactoryInterface<?> factory,
                                     boolean hasAuthorizationFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication,
                                     VitamClientFactoryInterface<?> factory,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication,
                                     VitamClientFactoryInterface<?> factory,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter,
                                     boolean hasSession)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     boolean hasAuthorizationFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter,
                                     boolean hasSession)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter,
                                     boolean hasSession,
                                     boolean hasShiroFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter,
                                     boolean hasSession,
                                     boolean hasShiroFilter,
                                     boolean hasXsrFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     VitamClientFactoryInterface<?> factory)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     VitamClientFactoryInterface<?> factory,
                                     boolean hasAuthorizationFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     VitamClientFactoryInterface<?> factory,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     VitamClientFactoryInterface<?> factory,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter,
                                     boolean hasSession)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     VitamClientFactoryInterface<?> factory,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter,
                                     boolean hasSession,
                                     boolean hasShiroFilter,
                                     boolean hasXsrFilter)
      • VitamServerTestRunner

        public VitamServerTestRunner​(java.lang.Class<? extends javax.ws.rs.core.Application> application,
                                     java.lang.Class<? extends javax.ws.rs.core.Application> adminApplication,
                                     SslConfig configuration,
                                     VitamClientFactoryInterface<?> factory,
                                     boolean hasTenantFilter,
                                     boolean hasAuthorizationFilter,
                                     boolean hasSession,
                                     boolean hasShiroFilter,
                                     boolean hasXsrFilter)
    • Method Detail

      • after

        protected void after()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • runAfter

        public void runAfter()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • stop

        public void stop()
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • start

        public void start()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • releasePort

        public final void releasePort()
      • getBusinessPort

        public int getBusinessPort()
      • getAdminPort

        public int getAdminPort()