hbedi 2002/10/17 20:09:29
Modified: tests/src/java/org/apache/james/testing
ProtocolSimulator.java
Log:
made the println a bit more friendly
Revision Changes Path
1.3 +2 -1
jakarta-james/tests/src/java/org/apache/james/testing/ProtocolSimulator.java
Index: ProtocolSimulator.java
===================================================================
RCS file:
/home/cvs/jakarta-james/tests/src/java/org/apache/james/testing/ProtocolSimulator.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ProtocolSimulator.java 18 Oct 2002 02:54:37 -0000 1.2
+++ ProtocolSimulator.java 18 Oct 2002 03:09:29 -0000 1.3
@@ -146,8 +146,9 @@
// read server line and validate
public void process() throws IOException {
String line = reader.readLine();
- String pattern =
"m/"+templateLine.substring(SERVER_TAG_LEN)+"/";
+ String pattern = templateLine.substring(SERVER_TAG_LEN);
System.out.println(pattern+":"+line);
+ pattern = "m/"+pattern+"/";
if ( line == null || !perl.match(pattern,line) )
throw new IOException
("Protocol Failure: got=["+line+"]
expected=["+templateLine+"]");
--
To unsubscribe, e-mail: <mailto:james-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@;jakarta.apache.org>