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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to