cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [10/21] git commit: Fix how the test looks for the messageId
Date Wed, 02 Apr 2014 06:26:06 GMT
Fix how the test looks for the messageId


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/81f4d58a
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/81f4d58a
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/81f4d58a

Branch: refs/heads/2.7.x-fixes
Commit: 81f4d58ad411f33ebb76a250d5d7b7d2164baf38
Parents: 99c8fc4
Author: Daniel Kulp <dkulp@apache.org>
Authored: Thu Mar 27 01:25:24 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Wed Apr 2 02:13:02 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/81f4d58a/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
----------------------------------------------------------------------
diff --git a/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
b/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
index f404dbe..2a548aa 100644
--- a/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
+++ b/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
@@ -95,8 +95,9 @@ public final class WSDiscoveryClientTest {
                     s.receive(p);
                     SocketAddress sa = p.getSocketAddress();
                     String incoming = new String(p.getData(), 0, p.getLength(), "UTF-8");
-                    int idx = incoming.indexOf("MessageID>");
-                    incoming = incoming.substring(idx + 10);
+                    int idx = incoming.indexOf("MessageID");
+                    idx = incoming.indexOf('>', idx);
+                    incoming = incoming.substring(idx + 1);
                     idx = incoming.indexOf("</");
                     incoming = incoming.substring(0, idx);
                     for (int x = 1; x < 4; x++) {


Mime
View raw message