You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2006/05/29 21:13:20 UTC
svn commit: r410140 -
/james/server/trunk/src/test/org/apache/james/test/mock/mailet/MockMatcherConfig.java
Author: norman
Date: Mon May 29 12:13:20 2006
New Revision: 410140
URL: http://svn.apache.org/viewvc?rev=410140&view=rev
Log:
-Get sure the matcherName and condition is extracted correctly
Modified:
james/server/trunk/src/test/org/apache/james/test/mock/mailet/MockMatcherConfig.java
Modified: james/server/trunk/src/test/org/apache/james/test/mock/mailet/MockMatcherConfig.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/test/mock/mailet/MockMatcherConfig.java?rev=410140&r1=410139&r2=410140&view=diff
==============================================================================
--- james/server/trunk/src/test/org/apache/james/test/mock/mailet/MockMatcherConfig.java (original)
+++ james/server/trunk/src/test/org/apache/james/test/mock/mailet/MockMatcherConfig.java Mon May 29 12:13:20 2006
@@ -35,7 +35,7 @@
}
public String getCondition() {
- return matcherName.split("=")[1];
+ return matcherName.substring(getMatcherName().length() + 1);
}
public MailetContext getMailetContext() {
@@ -43,7 +43,7 @@
}
public String getMatcherName() {
- return matcherName;
+ return matcherName.split("=")[0];
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org