mercredi 16 janvier 2019

how to test a hotfolder that use channels in spring-integration?

in spring-integretion project,i have a hot folder that detects when a csv is placed in a folder and do some extra stuff, i have a inbound-channel-adapter connected with a channel.

inbound-channel-adapter -> channel. detects when a csv its placed receive the mns its connected with a service-activator what i what to do its test only that the channel its receiving the mns when a file its created

i am using this tutorial https://www.javacodegeeks.com/2013/05/spring-integration-file-polling-and-tests.html its very useful, but i can create the context

Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@57a4d5ee] to prepare test instance [ritani.integration.hotFolderTest@5af5def9] java.lang.IllegalStateException: Failed to load ApplicationContext

Aucun commentaire:

Enregistrer un commentaire