Class TestUtils
java.lang.Object
org.fcrepo.camel.httpforwarding.integration.TestUtils
Utility functions for the integration tests
- Since:
- 2015-04-21
- Author:
- acoburn
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.fcrepo.client.FcrepoClientCreate a new FcrepoClient instance with authentication.static StringGet an event for a given URLstatic voidPost data to the provided URL
-
Method Details
-
getEvent
Get an event for a given URL- Parameters:
subject- the URLeventType- the event type- Returns:
- the event message as JSON
-
httpPost
Post data to the provided URL- Parameters:
url- string containing URLcontent- string containing datamimeType- string containing MIMe type of content- Throws:
Exception- in the event of an HTTP client failure
-
createClient
Create a new FcrepoClient instance with authentication.- Returns:
- the newly created client
-