Class UnknownQueryParameterFilterDisabledTest

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

public class UnknownQueryParameterFilterDisabledTest extends org.glassfish.jersey.test.JerseyTest
gemma.rest.rejectUnknownQueryParameters=false restores the JAX-RS default of ignoring an undeclared parameter. This is the rollback if enforcement turns out to break a client we could not see in advance, so it has to actually work — separate container from UnknownQueryParameterFilterTest because the setting is fixed when the filter is constructed.
  • Constructor Details

    • UnknownQueryParameterFilterDisabledTest

      public UnknownQueryParameterFilterDisabledTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp() throws Exception
      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
    • testUnknownParameterIsIgnoredWhenDisabled

      @Test public void testUnknownParameterIsIgnoredWhenDisabled()