Class TransactionProviderTest

    • Method Detail

      • setup

        public void setup()
      • testJmsBaseUrlDefault

        public void testJmsBaseUrlDefault()
        Demonstrates that when the jmsBaseUrl is not set, the url used for JMS messages is the same as the base url found in the UriInfo.

        Implementation note: this test requires a concrete instance of UriInfo, because it is the interaction of javax.ws.rs.core.UriBuilder and TransactionProvider that is being tested.

      • testJmsBaseUrlOverrideHost

        public void testJmsBaseUrlOverrideHost()
        Demonstrates that the host supplied by the jmsBaseUrl is used as the as the base url for JMS messages, and not the base url found in UriInfo.

        Note: the path from the request is preserved, the host from the fcrepo.jms.baseUrl is used

        Implementation note: this test requires a concrete instance of UriInfo, because it is the interaction of javax.ws.rs.core.UriBuilder and TransactionProvider that is being tested.

      • testJmsBaseUrlOverrideHostAndPort

        public void testJmsBaseUrlOverrideHostAndPort()
        Demonstrates that the host and port supplied by the jmsBaseUrl is used as the as the base url for JMS messages, and not the base url found in UriInfo.

        Note: the path from the request is preserved, but the host and port from the request is overridden by the values from fcrepo.jms.baseUrl

        Implementation note: this test requires a concrete instance of UriInfo, because it is the interaction of javax.ws.rs.core.UriBuilder and TransactionProvider that is being tested.

      • testJmsBaseUrlOverrideUrl

        public void testJmsBaseUrlOverrideUrl()
        Demonstrates that the url supplied by the jmsBaseUrl is used as the as the base url for JMS messages, and not the base url found in UriInfo.

        Note: the host and path from the request is overridden by the values from fcrepo.jms.baseUrl

        Implementation note: this test requires a concrete instance of UriInfo, because it is the interaction of javax.ws.rs.core.UriBuilder and TransactionProvider that is being tested.

      • testJmsBaseUrlOverrideRequestUrlWithPort8080

        public void testJmsBaseUrlOverrideRequestUrlWithPort8080()
        Demonstrates that when the the base url in UriInfo contains a port number, and the base url does not contain a port number, that the base url for JMS messages does not contain a port number.

        Note: the host, port, and path from the request is overridden by values from fcrepo.jms.baseUrl

        Implementation note: this test requires a concrete instance of UriInfo, because it is the interaction of javax.ws.rs.core.UriBuilder and TransactionProvider that is being tested.