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
  • Field Details

    • junitFolder

      public static org.junit.rules.TemporaryFolder junitFolder
    • JERSEY_CLASSES

      public static Set<Class<?>> JERSEY_CLASSES
  • Constructor Details

    • MCRJerseyTest

      public MCRJerseyTest()
  • Method Details

    • mcrInitBaseDir

      public static void mcrInitBaseDir() throws IOException
      Throws:
      IOException
    • mcrCleanUp

      public static void mcrCleanUp()
    • mcrSetUp

      public void mcrSetUp() throws Exception
      Throws:
      Exception
    • mcrTearDown

      public void mcrTearDown() throws Exception
      Throws:
      Exception
    • getTestProperties

      protected Map<String,String> getTestProperties()
    • configureClient

      protected void configureClient(org.glassfish.jersey.client.ClientConfig config)
      Overrides:
      configureClient in class org.glassfish.jersey.test.JerseyTest
    • configure

      protected jakarta.ws.rs.core.Application configure()
      Overrides:
      configure in class org.glassfish.jersey.test.JerseyTest
    • getTestContainerFactory

      protected org.glassfish.jersey.test.spi.TestContainerFactory getTestContainerFactory() throws org.glassfish.jersey.test.spi.TestContainerException
      Overrides:
      getTestContainerFactory in class org.glassfish.jersey.test.JerseyTest
      Throws:
      org.glassfish.jersey.test.spi.TestContainerException
    • configureDeployment

      protected org.glassfish.jersey.test.DeploymentContext configureDeployment()
      Overrides:
      configureDeployment in class org.glassfish.jersey.test.JerseyTest