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:
Robert Davies 2006-01-19 00:34:52 +00:00
parent 4098942c1e
commit 5b2e9be749
1 changed files with 10 additions and 0 deletions

View File

@ -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{
}
} }