Search in sources :

Example 1 with EventListenerInterceptorChainProviderCodeGenerator

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()));
}
Also used : EventListenerInterceptorChainProviderCodeGenerator(uk.gov.justice.subscription.jms.interceptor.EventListenerInterceptorChainProviderCodeGenerator) SubscriptionMediaTypeToSchemaIdGenerator(uk.gov.justice.services.generators.commons.mapping.SubscriptionMediaTypeToSchemaIdGenerator) EventValidationInterceptorCodeGenerator(uk.gov.justice.subscription.jms.interceptor.EventValidationInterceptorCodeGenerator) EventFilterInterceptorCodeGenerator(uk.gov.justice.subscription.jms.interceptor.EventFilterInterceptorCodeGenerator) Test(org.junit.Test)

Example 2 with EventListenerInterceptorChainProviderCodeGenerator

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()));
}
Also used : EventListenerInterceptorChainProviderCodeGenerator(uk.gov.justice.subscription.jms.interceptor.EventListenerInterceptorChainProviderCodeGenerator) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 EventListenerInterceptorChainProviderCodeGenerator (uk.gov.justice.subscription.jms.interceptor.EventListenerInterceptorChainProviderCodeGenerator)2 SubscriptionMediaTypeToSchemaIdGenerator (uk.gov.justice.services.generators.commons.mapping.SubscriptionMediaTypeToSchemaIdGenerator)1 EventFilterInterceptorCodeGenerator (uk.gov.justice.subscription.jms.interceptor.EventFilterInterceptorCodeGenerator)1 EventValidationInterceptorCodeGenerator (uk.gov.justice.subscription.jms.interceptor.EventValidationInterceptorCodeGenerator)1