Class TransactionProviderTest
- java.lang.Object
-
- org.fcrepo.http.commons.session.TransactionProviderTest
-
public class TransactionProviderTest extends Object
- Author:
- pwinckles
-
-
Constructor Summary
Constructors Constructor Description TransactionProviderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()voidtestJmsBaseUrlDefault()Demonstrates that when the jmsBaseUrl is not set, the url used for JMS messages is the same as the base url found in theUriInfo.voidtestJmsBaseUrlOverrideHost()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 inUriInfo.voidtestJmsBaseUrlOverrideHostAndPort()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 inUriInfo.voidtestJmsBaseUrlOverrideRequestUrlWithPort8080()Demonstrates that when the the base url inUriInfocontains 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.voidtestJmsBaseUrlOverrideUrl()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 inUriInfo.voidtestSetUserAgent()
-
-
-
Constructor Detail
-
TransactionProviderTest
public TransactionProviderTest()
-
-
Method Detail
-
setup
public void setup()
-
testSetUserAgent
public void testSetUserAgent()
-
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 theUriInfo.Implementation note: this test requires a concrete instance of
UriInfo, because it is the interaction ofjavax.ws.rs.core.UriBuilderandTransactionProviderthat 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 inUriInfo.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 ofjavax.ws.rs.core.UriBuilderandTransactionProviderthat 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 inUriInfo.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 ofjavax.ws.rs.core.UriBuilderandTransactionProviderthat 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 inUriInfo.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 ofjavax.ws.rs.core.UriBuilderandTransactionProviderthat is being tested.
-
testJmsBaseUrlOverrideRequestUrlWithPort8080
public void testJmsBaseUrlOverrideRequestUrlWithPort8080()
Demonstrates that when the the base url inUriInfocontains 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 ofjavax.ws.rs.core.UriBuilderandTransactionProviderthat is being tested.
-
-