qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject [3/3] git commit: update expectations for temporary-queue creation to match on values of the Attach target
Date Mon, 27 Oct 2014 14:10:38 GMT
update expectations for temporary-queue creation to match on values of the Attach target


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/177aca04
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/177aca04
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/177aca04

Branch: refs/heads/master
Commit: 177aca0482c1fccaecbdb190c5b7eb1338faa9c7
Parents: a40f027
Author: Robert Gemmell <robbie@apache.org>
Authored: Mon Oct 27 14:01:55 2014 +0000
Committer: Robert Gemmell <robbie@apache.org>
Committed: Mon Oct 27 14:01:55 2014 +0000

----------------------------------------------------------------------
 .../org/apache/qpid/jms/test/testpeer/TestAmqpPeer.java     | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/177aca04/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/TestAmqpPeer.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/TestAmqpPeer.java
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/TestAmqpPeer.java
index f0ca7a0..ba06808 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/TestAmqpPeer.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/TestAmqpPeer.java
@@ -56,6 +56,7 @@ import org.apache.qpid.jms.test.testpeer.matchers.EndMatcher;
 import org.apache.qpid.jms.test.testpeer.matchers.FlowMatcher;
 import org.apache.qpid.jms.test.testpeer.matchers.OpenMatcher;
 import org.apache.qpid.jms.test.testpeer.matchers.SaslInitMatcher;
+import org.apache.qpid.jms.test.testpeer.matchers.TargetMatcher;
 import org.apache.qpid.jms.test.testpeer.matchers.TransferMatcher;
 import org.apache.qpid.proton.Proton;
 import org.apache.qpid.proton.amqp.Binary;
@@ -391,6 +392,12 @@ public class TestAmqpPeer implements AutoCloseable
 
     public void expectTempQueueCreationAttach(final String dynamicAddress)
     {
+        TargetMatcher targetMatcher = new TargetMatcher();
+        targetMatcher.withAddress(nullValue());
+        targetMatcher.withDynamic(equalTo(true));
+        //TODO: this is currently being set as session-end
+        //targetMatcher.withExpiryPolicy(equalTo(Symbol.valueOf("link-detach")));//TODO:
values for ExpiryPolicy etc.
+
         final AttachMatcher attachMatcher = new AttachMatcher()
                 .withName(notNullValue())
                 .withHandle(notNullValue())
@@ -398,7 +405,7 @@ public class TestAmqpPeer implements AutoCloseable
                 .withSndSettleMode(equalTo(ATTACH_SND_SETTLE_MODE_UNSETTLED))
                 .withRcvSettleMode(equalTo(ATTACH_RCV_SETTLE_MODE_FIRST))
                 .withSource(notNullValue())
-                .withTarget(notNullValue());//TODO match on the actual Target object details
+                .withTarget(targetMatcher);
 
         UnsignedInteger linkHandle = UnsignedInteger.valueOf(_nextLinkHandle++);
         final AttachFrame attachResponse = new AttachFrame()


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message