use of uk.gov.justice.services.generators.commons.mapping.SubscriptionMediaTypeToSchemaIdGenerator in project microservice_framework by CJSCommonPlatform.
the class JmsEndpointGenerationObjectsTest method shouldCreateASubscriptionJmsEndpointGenerator.
@Test
public void shouldCreateASubscriptionJmsEndpointGenerator() throws Exception {
final SubscriptionJmsEndpointGenerator jmsEndpointGenerator = jmsEndpointGenerationObjects.subscriptionJmsEndpointGenerator();
final MessageListenerCodeGenerator ramlValidator = getPrivateFieldFrom(jmsEndpointGenerator, "messageListenerCodeGenerator", MessageListenerCodeGenerator.class);
final EventFilterCodeGenerator eventFilterCodeGenerator = getPrivateFieldFrom(jmsEndpointGenerator, "eventFilterCodeGenerator", EventFilterCodeGenerator.class);
final SubscriptionMediaTypeToSchemaIdGenerator subscriptionMediaTypeToSchemaIdGenerator = getPrivateFieldFrom(jmsEndpointGenerator, "subscriptionMediaTypeToSchemaIdGenerator", SubscriptionMediaTypeToSchemaIdGenerator.class);
final EventFilterInterceptorCodeGenerator eventFilterInterceptorCodeGenerator = getPrivateFieldFrom(jmsEndpointGenerator, "eventFilterInterceptorCodeGenerator", EventFilterInterceptorCodeGenerator.class);
final EventValidationInterceptorCodeGenerator eventValidationInterceptorCodeGenerator = getPrivateFieldFrom(jmsEndpointGenerator, "eventValidationInterceptorCodeGenerator", EventValidationInterceptorCodeGenerator.class);
final EventListenerInterceptorChainProviderCodeGenerator eventListenerInterceptorChainProviderCodeGenerator = getPrivateFieldFrom(jmsEndpointGenerator, "eventListenerInterceptorChainProviderCodeGenerator", EventListenerInterceptorChainProviderCodeGenerator.class);
assertThat(ramlValidator, is(notNullValue()));
assertThat(eventFilterCodeGenerator, is(notNullValue()));
assertThat(subscriptionMediaTypeToSchemaIdGenerator, is(notNullValue()));
assertThat(eventFilterInterceptorCodeGenerator, is(notNullValue()));
assertThat(eventValidationInterceptorCodeGenerator, is(notNullValue()));
assertThat(eventListenerInterceptorChainProviderCodeGenerator, is(notNullValue()));
}
use of uk.gov.justice.services.generators.commons.mapping.SubscriptionMediaTypeToSchemaIdGenerator in project microservice_framework by CJSCommonPlatform.
the class JmsEndpointGenerationObjectsTest method shouldCreateASubscriptionMediaTypeToSchemaIdGenerator.
@Test
public void shouldCreateASubscriptionMediaTypeToSchemaIdGenerator() throws Exception {
final SubscriptionMediaTypeToSchemaIdGenerator subscriptionMediaTypeToSchemaIdGenerator = jmsEndpointGenerationObjects.subscriptionMediaTypeToSchemaIdGenerator();
assertThat(subscriptionMediaTypeToSchemaIdGenerator, is(notNullValue()));
}
Aggregations