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