Class WebApplicationExceptionMapperTest
java.lang.Object
org.glassfish.jersey.test.JerseyTest
ubic.gemma.rest.providers.WebApplicationExceptionMapperTest
public class WebApplicationExceptionMapperTest
extends org.glassfish.jersey.test.JerseyTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis is a very simplisitc example that produces two representation for the same resource. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.glassfish.jersey.test.JerseyTest
client, close, closeIfNotNull, configureClient, configureDeployment, disable, enable, forceDisable, forceEnable, forceSet, getAsyncTimeoutMultiplier, getBaseUri, getClient, getLastLoggedRecord, getLoggedRecords, getPort, getSslContext, getSslParameters, isEnabled, set, set, setClient, target, target
-
Constructor Details
-
WebApplicationExceptionMapperTest
public WebApplicationExceptionMapperTest()
-
-
Method Details
-
setUp
Bridge Jersey's JUnit 4 lifecycle into Jupiter's.JerseyTest.setUp()andJerseyTest.tearDown()are plainpublicmethods (no JUnit 4 annotations baked into the bytecode), so re-annotating them here is safe and does not double-fire. We don't extendBaseJerseyTest5because itsconfigure()isfinaland conflicts with the customResourceConfigthis test needs.- Overrides:
setUpin classorg.glassfish.jersey.test.JerseyTest- Throws:
Exception
-
tearDown
-
getTestContainerFactory
protected org.glassfish.jersey.test.spi.TestContainerFactory getTestContainerFactory() throws org.glassfish.jersey.test.spi.TestContainerException- Overrides:
getTestContainerFactoryin classorg.glassfish.jersey.test.JerseyTest- Throws:
org.glassfish.jersey.test.spi.TestContainerException
-
configure
public jakarta.ws.rs.core.Application configure()- Overrides:
configurein classorg.glassfish.jersey.test.JerseyTest
-
testTextRepresentation
@Test public void testTextRepresentation() -
testJsonRepresentation
@Test public void testJsonRepresentation()
-