Skip to content

Commit

Permalink
$ needs to be escaped in regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
jbliznak committed Sep 10, 2015
1 parent 78da87e commit 51a6fd2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Expand Up @@ -85,7 +85,7 @@ public void testMustUnderstand() throws Exception
//To mustunderstand
InputStream msgIns = getClass().getResourceAsStream("./wsa-to-mustunderstand.xml");
String msg = new String(IOUtils.readBytesFromStream(msgIns));
msg = msg.replaceAll("$PORT", PROXY_PORT);
msg = msg.replaceAll("\\$PORT", PROXY_PORT);

ByteArrayInputStream bout = new ByteArrayInputStream(msg.getBytes());

Expand All @@ -103,7 +103,7 @@ public void testMustUnderstand() throws Exception
//fault to must understand
msgIns = getClass().getResourceAsStream("./wsa-faultto-mustunderstand.xml");
msg = new String(IOUtils.readBytesFromStream(msgIns));
msg = msg.replaceAll("$PORT", PROXY_PORT);
msg = msg.replaceAll("\\$PORT", PROXY_PORT);

bout = new ByteArrayInputStream(msg.getBytes());

Expand All @@ -120,7 +120,7 @@ public void testMustUnderstand() throws Exception

msgIns = getClass().getResourceAsStream("./wsa-replyto-mustunderstand.xml");
msg = new String(IOUtils.readBytesFromStream(msgIns));
msg = msg.replaceAll("$PORT", PROXY_PORT);
msg = msg.replaceAll("\\$PORT", PROXY_PORT);

bout = new ByteArrayInputStream(msg.getBytes());

Expand All @@ -136,7 +136,7 @@ public void testMustUnderstand() throws Exception
}
msgIns = getClass().getResourceAsStream("./wsa-msgid-mustunderstand.xml");
msg = new String(IOUtils.readBytesFromStream(msgIns));
msg = msg.replaceAll("$PORT", PROXY_PORT);
msg = msg.replaceAll("\\$PORT", PROXY_PORT);

bout = new ByteArrayInputStream(msg.getBytes());

Expand Down
Expand Up @@ -111,7 +111,7 @@ public void testMessageIdMissed() throws Exception
getProxyAddress(baseURL) + "/Test119x");
InputStream msgIns = getClass().getResourceAsStream("./wsa-without-messageid.xml");
String msg = new String(IOUtils.readBytesFromStream(msgIns));
msg = msg.replaceAll("$PORT", PROXY_PORT);
msg = msg.replaceAll("\\$PORT", PROXY_PORT);

ByteArrayInputStream bout = new ByteArrayInputStream(msg.getBytes());

Expand Down
Expand Up @@ -85,7 +85,7 @@ public void testMustUnderstand() throws Exception
//To mustunderstand
InputStream msgIns = getClass().getResourceAsStream("./wsa-to-mustunderstand.xml");
String msg = new String(IOUtils.readBytesFromStream(msgIns));
msg = msg.replaceAll("$PORT", PROXY_PORT);
msg = msg.replaceAll("\\$PORT", PROXY_PORT);

ByteArrayInputStream bout = new ByteArrayInputStream(msg.getBytes());

Expand All @@ -103,7 +103,7 @@ public void testMustUnderstand() throws Exception
//fault to must understand
msgIns = getClass().getResourceAsStream("./wsa-faultto-mustunderstand.xml");
msg = new String(IOUtils.readBytesFromStream(msgIns));
msg = msg.replaceAll("$PORT", PROXY_PORT);
msg = msg.replaceAll("\\$PORT", PROXY_PORT);

bout = new ByteArrayInputStream(msg.getBytes());

Expand All @@ -120,7 +120,7 @@ public void testMustUnderstand() throws Exception

msgIns = getClass().getResourceAsStream("./wsa-replyto-mustunderstand.xml");
msg = new String(IOUtils.readBytesFromStream(msgIns));
msg = msg.replaceAll("$PORT", PROXY_PORT);
msg = msg.replaceAll("\\$PORT", PROXY_PORT);

bout = new ByteArrayInputStream(msg.getBytes());

Expand All @@ -136,7 +136,7 @@ public void testMustUnderstand() throws Exception
}
msgIns = getClass().getResourceAsStream("./wsa-msgid-mustunderstand.xml");
msg = new String(IOUtils.readBytesFromStream(msgIns));
msg = msg.replaceAll("$PORT", PROXY_PORT);
msg = msg.replaceAll("\\$PORT", PROXY_PORT);

bout = new ByteArrayInputStream(msg.getBytes());

Expand Down
Expand Up @@ -111,7 +111,7 @@ public void testMessageIdMissed() throws Exception
getProxyAddress(baseURL) + "/Test119x");
InputStream msgIns = getClass().getResourceAsStream("./wsa-without-messageid.xml");
String msg = new String(IOUtils.readBytesFromStream(msgIns));
msg = msg.replaceAll("$PORT", PROXY_PORT);
msg = msg.replaceAll("\\$PORT", PROXY_PORT);

ByteArrayInputStream bout = new ByteArrayInputStream(msg.getBytes());

Expand Down

0 comments on commit 51a6fd2

Please sign in to comment.