use of uk.gov.justice.subscription.jms.interceptor.EventListenerInterceptorChainProviderCodeGenerator 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.subscription.jms.interceptor.EventListenerInterceptorChainProviderCodeGenerator in project microservice_framework by CJSCommonPlatform.
the class JmsEndpointGenerationObjectsTest method shouldCreateAnEventListenerInterceptorChainProviderCodeGenerator.
@Test
public void shouldCreateAnEventListenerInterceptorChainProviderCodeGenerator() throws Exception {
final EventListenerInterceptorChainProviderCodeGenerator eventListenerInterceptorChainProviderCodeGenerator = jmsEndpointGenerationObjects.eventListenerInterceptorChainProviderCodeGenerator();
assertThat(eventListenerInterceptorChainProviderCodeGenerator, is(notNullValue()));
}
Aggregations