summaryrefslogtreecommitdiff
path: root/qpid/java
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2009-08-06 09:23:17 +0000
committerMartin Ritchie <ritchiem@apache.org>2009-08-06 09:23:17 +0000
commitd38e7ac90ec1513dde9b8eafbfc893f3b7a4a4db (patch)
tree78138626ba7a52bbc7f967a98783b72f8ea0cda0 /qpid/java
parent96d4db42741fec5c4e77c14c047bafc64579c1df (diff)
downloadqpid-python-d38e7ac90ec1513dde9b8eafbfc893f3b7a4a4db.tar.gz
QPID-2002 : Rename extractConnectionID to getConnectionID to be inline with rest of the helper methods
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@801556 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
-rw-r--r--qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java4
-rw-r--r--qpid/java/systests/src/main/java/org/apache/qpid/server/logging/ConnectionLoggingTest.java9
2 files changed, 4 insertions, 9 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java
index 47ae599d2b..82c53aefa7 100644
--- a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java
+++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java
@@ -191,7 +191,7 @@ public class AbstractTestLogging extends QpidTestCase
* @param log the log String to process
* @return the connection ID or -1.
*/
- protected int extractConnectionID(String log)
+ protected int getConnectionID(String log)
{
int conIDStart = log.indexOf("con:") + 4;
int conIDEnd = log.indexOf("(", conIDStart);
@@ -242,7 +242,7 @@ public class AbstractTestLogging extends QpidTestCase
for (String log : logMessages)
{
// Get the connectionID from the Actor in the Message Log.
- int cID = extractConnectionID(fromActor(getLog(log)));
+ int cID = getConnectionID(fromActor(getLog(log)));
List<String> connectionData = connectionSplitList.get(cID);
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/ConnectionLoggingTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/ConnectionLoggingTest.java
index 46f32b1414..9915d410c5 100644
--- a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/ConnectionLoggingTest.java
+++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/ConnectionLoggingTest.java
@@ -20,15 +20,10 @@
*/
package org.apache.qpid.server.logging;
-import org.apache.qpid.test.unit.client.forwardall.Client;
-
import javax.jms.Connection;
import java.io.File;
import java.util.List;
import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.SortedSet;
-import java.util.Collections;
import java.util.TreeSet;
public class ConnectionLoggingTest extends AbstractTestLogging
@@ -174,12 +169,12 @@ public class ConnectionLoggingTest extends AbstractTestLogging
assertTrue("Message does not end with close:" + log, log.endsWith("Close"));
// Extract connection ID to validate there is a CON-1001 messasge for it
- int connectionID = extractConnectionID(log);
+ int connectionID = getConnectionID(log);
//Previous log message should be the open
log = getLog(results.get(resultsSize - 2));
// MESSAGE [con:1(/127.0.0.1:52540)] CON-1001 : Open : Client ID : clientid : Protocol Version : 0-9
validateMessageID("CON-1001",log);
- assertEquals("Connection IDs do not match", connectionID, extractConnectionID(fromActor(log)));
+ assertEquals("Connection IDs do not match", connectionID, getConnectionID(fromActor(log)));
}
}