Package fr.gouv.vitam.common.serverv2
Class VitamServerTestRunner
- java.lang.Object
-
- fr.gouv.vitam.common.serverv2.VitamServerTestRunner
-
public class VitamServerTestRunner extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VitamServerTestRunner.AdminApp
-
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
after()
int
getAdminPort()
int
getBusinessPort()
MockOrRestClient
getClient()
void
releasePort()
void
runAfter()
void
start()
void
stop()
-
-
-
Field Detail
-
LOCALHOST
public static final java.lang.String LOCALHOST
- See Also:
- Constant Field Values
-
MIN_PORT
public static final int MIN_PORT
- See Also:
- Constant Field Values
-
-
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
-
getClient
public MockOrRestClient getClient()
-
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()
-
-