0 Replies Latest reply on Nov 15, 2016 7:38 AM by Bruce Springfield

    Any way to ensure JMS eventing occurs before a test begins?

    Bruce Springfield Apprentice

      I am running an integration test using Arquillian in an EAR file that uses CDI and JMS where I am dependent on the results of JMS eventing for the integration tests. I found that I cannot control when the JMS eventing occurs. Sometimes, JMS eventing occurs before a particular test starts which is the result I want. But sometimes I find the JMS eventing occurs after the test. Is there any way to tell JMS that it should begin at a particular time? Is there any way to ask JMS whether a particular event has occurred or not? Is there any way to tell a test to wait for JMS to complete before starting?