Search in sources :

Example 6 with Location

use of uk.gov.justice.subscription.domain.Location in project microservice_framework by CJSCommonPlatform.

the class LocationBuilderTest method shouldBuildALocation.

@Test
public void shouldBuildALocation() throws Exception {
    final String jmsUri = "jmsUri";
    final String restUri = "restUri";
    final Location location = location().withJmsUri(jmsUri).withRestUri(restUri).build();
    assertThat(location.getJmsUri(), is(jmsUri));
    assertThat(location.getRestUri(), is(restUri));
}
Also used : Location(uk.gov.justice.subscription.domain.Location) Test(org.junit.Test)

Aggregations

Location (uk.gov.justice.subscription.domain.Location)6 Test (org.junit.Test)3 Eventsource (uk.gov.justice.subscription.domain.Eventsource)3 MimeType (org.raml.model.MimeType)2 Event (uk.gov.justice.subscription.domain.Event)2 Subscription (uk.gov.justice.subscription.domain.Subscription)2 Resource (org.raml.model.Resource)1