Class WebApplicationExceptionMapperTest

java.lang.Object
org.glassfish.jersey.test.JerseyTest
ubic.gemma.rest.providers.WebApplicationExceptionMapperTest

public class WebApplicationExceptionMapperTest extends org.glassfish.jersey.test.JerseyTest
  • Constructor Details

    • WebApplicationExceptionMapperTest

      public WebApplicationExceptionMapperTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp() throws Exception
      Bridge Jersey's JUnit 4 lifecycle into Jupiter's. JerseyTest.setUp() and JerseyTest.tearDown() are plain public methods (no JUnit 4 annotations baked into the bytecode), so re-annotating them here is safe and does not double-fire. We don't extend BaseJerseyTest5 because its configure() is final and conflicts with the custom ResourceConfig this test needs.
      Overrides:
      setUp in class org.glassfish.jersey.test.JerseyTest
      Throws:
      Exception
    • tearDown

      @AfterEach public void tearDown() throws Exception
      Overrides:
      tearDown in class org.glassfish.jersey.test.JerseyTest
      Throws:
      Exception
    • 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
    • configure

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

      @Test public void testTextRepresentation()
    • testJsonRepresentation

      @Test public void testJsonRepresentation()