Re: How do you test asynchronous messaging with JUnit
Monday, February 17, 2003 03:20 AM
Just some thoughts: you can´t test them in an asynchronous manner. When will the test fail? Which class has recieved the message to a message board (publish-subscriber)? So you can use a timeout and observe for the reactions. (not good). But you should be able to invoke the class directly and not via JMS. So you can test the business logic of your class. The JMS-system should be tested by the provider.