Is it possible to have write NonBlocking Junit tests

<[email protected]> 10 Apr 2014 08:21:23 -0700
Newsgroups gmane.comp.java.junit.user
Message-ID <[email protected]>
I am writing a Junit tests for Amqp Message Listener.This is how the test is written.I send a message to a exchange and introduce a delay of 1s (assuming that the listener will do its job within that time frame).This approach slows down the build process as there 15-20 tests like these which take a minimum of 20 seconds to execute.Is there a way in which I can do this is a non blocking way.For pass a call handler which verifies the tests after the listener does it job.Something like Actors might be internally used