mirror of https://github.com/apache/activemq.git
added messageSent() method - so can hook in failure tests in derived unit tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@370330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4098942c1e
commit
5b2e9be749
|
@ -93,6 +93,7 @@ public class JmsSendReceiveTestSupport extends TestSupport implements MessageLis
|
||||||
}
|
}
|
||||||
|
|
||||||
producer.send(producerDestination, message);
|
producer.send(producerDestination, message);
|
||||||
|
messageSent();
|
||||||
}
|
}
|
||||||
|
|
||||||
assertMessagesAreReceived();
|
assertMessagesAreReceived();
|
||||||
|
@ -201,4 +202,13 @@ public class JmsSendReceiveTestSupport extends TestSupport implements MessageLis
|
||||||
protected List createConcurrentList() {
|
protected List createConcurrentList() {
|
||||||
return Collections.synchronizedList(new ArrayList());
|
return Collections.synchronizedList(new ArrayList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Just a hook so can insert failure tests
|
||||||
|
* @throws Exception
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected void messageSent() throws Exception{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue