Class MCRJerseyTest
java.lang.Object
org.glassfish.jersey.test.JerseyTest
org.mycore.frontend.jersey.resources.MCRJerseyTest
- Direct Known Subclasses:
MCRClassificationEditorResourceTest
,MCRJerseyResourceTest
,MCRLocaleResourceTest
public abstract class MCRJerseyTest
extends org.glassfish.jersey.test.JerseyTest
Jersey base test class. Overwrite this class and add a
BeforeClass
method which adds the required
jersey classes.- Author:
- Matthias Eichner
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.junit.rules.TemporaryFolder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.ws.rs.core.Application
protected void
configureClient
(org.glassfish.jersey.client.ClientConfig config) protected org.glassfish.jersey.test.DeploymentContext
protected org.glassfish.jersey.test.spi.TestContainerFactory
static void
static void
void
mcrSetUp()
void
Methods inherited from class org.glassfish.jersey.test.JerseyTest
client, close, closeIfNotNull, disable, enable, forceDisable, forceEnable, forceSet, getAsyncTimeoutMultiplier, getBaseUri, getClient, getLastLoggedRecord, getLoggedRecords, getPort, getSslContext, getSslParameters, isEnabled, set, set, setClient, setUp, target, target, tearDown
-
Field Details
-
junitFolder
public static org.junit.rules.TemporaryFolder junitFolder -
JERSEY_CLASSES
-
-
Constructor Details
-
MCRJerseyTest
public MCRJerseyTest()
-
-
Method Details
-
mcrInitBaseDir
- Throws:
IOException
-
mcrCleanUp
public static void mcrCleanUp() -
mcrSetUp
- Throws:
Exception
-
mcrTearDown
- Throws:
Exception
-
getTestProperties
-
configureClient
protected void configureClient(org.glassfish.jersey.client.ClientConfig config) - Overrides:
configureClient
in classorg.glassfish.jersey.test.JerseyTest
-
configure
protected jakarta.ws.rs.core.Application configure()- Overrides:
configure
in classorg.glassfish.jersey.test.JerseyTest
-
getTestContainerFactory
protected org.glassfish.jersey.test.spi.TestContainerFactory getTestContainerFactory() throws org.glassfish.jersey.test.spi.TestContainerException- Overrides:
getTestContainerFactory
in classorg.glassfish.jersey.test.JerseyTest
- Throws:
org.glassfish.jersey.test.spi.TestContainerException
-
configureDeployment
protected org.glassfish.jersey.test.DeploymentContext configureDeployment()- Overrides:
configureDeployment
in classorg.glassfish.jersey.test.JerseyTest
-