diff options
| author | Robert Gemmell <robbie@apache.org> | 2011-09-13 00:28:09 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2011-09-13 00:28:09 +0000 |
| commit | 8e72ac2bd59eef91061baac6355708a1cb922ac7 (patch) | |
| tree | 2181eae7c28274749c2be44ef1a0c949098420c9 /java/systests | |
| parent | 79f25ae18103afc16bd92abf8ed31df1992f13cf (diff) | |
| download | qpid-python-8e72ac2bd59eef91061baac6355708a1cb922ac7.tar.gz | |
QPID-3428: fix excludes after test related changes from to prior patch feeback, add a bit of javadoc to tests and use constants
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1169984 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/systests')
| -rw-r--r-- | java/systests/src/main/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java b/java/systests/src/main/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java index 328719813a..1fa6829bf9 100644 --- a/java/systests/src/main/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java +++ b/java/systests/src/main/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java @@ -32,6 +32,7 @@ import org.apache.qpid.client.AMQConnectionURL; import org.apache.qpid.client.AMQQueue; import org.apache.qpid.client.AMQSession; import org.apache.qpid.client.AMQTopic; +import org.apache.qpid.configuration.ClientProperties; import org.apache.qpid.exchange.ExchangeDefaults; import org.apache.qpid.framing.AMQShortString; import org.apache.qpid.jms.BrokerDetails; @@ -292,9 +293,14 @@ public class ConnectionTest extends QpidBrokerTestCase } } + /** + * Tests that when the same user connects twice with same clientid, the second connection + * fails if the clientid verification feature is enabled (which uses a dummy 0-10 Session + * with the clientid as its name to detect the previous usage of the clientid by the user) + */ public void testClientIDVerificationForSameUser() throws Exception { - setTestSystemProperty("qpid.verify_client_id", "true"); + setTestSystemProperty(ClientProperties.QPID_VERIFY_CLIENT_ID, "true"); BrokerDetails broker = getBroker(); try @@ -315,9 +321,15 @@ public class ConnectionTest extends QpidBrokerTestCase } } + /** + * Tests that when different users connects with same clientid, the second connection + * succeeds even though the clientid verification feature is enabled (which uses a dummy + * 0-10 Session with the clientid as its name; these are only verified unique on a + * per-principal basis) + */ public void testClientIDVerificationForDifferentUsers() throws Exception { - setTestSystemProperty("qpid.verify_client_id", "true"); + setTestSystemProperty(ClientProperties.QPID_VERIFY_CLIENT_ID, "true"); BrokerDetails broker = getBroker(); try |
