Search in sources :

Example 1 with DispatcherFactory

use of uk.gov.justice.services.core.dispatcher.DispatcherFactory in project microservice_framework by CJSCommonPlatform.

the class InterceptorChainProcessorProducerTest method setUp.

@Before
public void setUp() throws Exception {
    interceptorChainProcessorProducer.dispatcherCache = new DispatcherCache(new DispatcherFactory(new EnvelopePayloadTypeConverter(new ObjectMapperProducer().objectMapper()), new JsonEnvelopeRepacker()));
    envelopeRecordingInterceptor.reset();
}
Also used : DispatcherFactory(uk.gov.justice.services.core.dispatcher.DispatcherFactory) DispatcherCache(uk.gov.justice.services.core.dispatcher.DispatcherCache) ObjectMapperProducer(uk.gov.justice.services.common.converter.jackson.ObjectMapperProducer) JsonEnvelopeRepacker(uk.gov.justice.services.core.dispatcher.JsonEnvelopeRepacker) EnvelopePayloadTypeConverter(uk.gov.justice.services.core.dispatcher.EnvelopePayloadTypeConverter) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 ObjectMapperProducer (uk.gov.justice.services.common.converter.jackson.ObjectMapperProducer)1 DispatcherCache (uk.gov.justice.services.core.dispatcher.DispatcherCache)1 DispatcherFactory (uk.gov.justice.services.core.dispatcher.DispatcherFactory)1 EnvelopePayloadTypeConverter (uk.gov.justice.services.core.dispatcher.EnvelopePayloadTypeConverter)1 JsonEnvelopeRepacker (uk.gov.justice.services.core.dispatcher.JsonEnvelopeRepacker)1