From 658db037839ea582e77619e2ff022c82e77e29e1 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Sat, 6 Nov 2004 14:57:43 +0000 Subject: [PATCH] Added #getPort() method. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2413 b35dd754-fafc-0310-a699-88a17e54d16e --- test/org/jivesoftware/smack/test/SmackTestCase.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/org/jivesoftware/smack/test/SmackTestCase.java b/test/org/jivesoftware/smack/test/SmackTestCase.java index ccf74315c..50258f22e 100644 --- a/test/org/jivesoftware/smack/test/SmackTestCase.java +++ b/test/org/jivesoftware/smack/test/SmackTestCase.java @@ -177,6 +177,10 @@ public abstract class SmackTestCase extends TestCase { return host; } + protected int getPort() { + return port; + } + /** * Returns the default groupchat service domain. * @@ -198,6 +202,9 @@ public abstract class SmackTestCase extends TestCase { protected void setUp() throws Exception { super.setUp(); init(); + if (getMaxConnections() < 1) { + return; + } connections = new XMPPConnection[getMaxConnections()]; try { // Connect to the server