james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r420593 - /james/server/branches/v2.3/src/test/org/apache/james/test/mock/mailet/MockMailetConfig.java
Date Mon, 10 Jul 2006 17:46:45 GMT
Author: norman
Date: Mon Jul 10 10:46:45 2006
New Revision: 420593

URL: http://svn.apache.org/viewvc?rev=420593&view=rev
Log:
Override setProperty(String,String) to work like aspected in the mocked object.

Modified:
    james/server/branches/v2.3/src/test/org/apache/james/test/mock/mailet/MockMailetConfig.java

Modified: james/server/branches/v2.3/src/test/org/apache/james/test/mock/mailet/MockMailetConfig.java
URL: http://svn.apache.org/viewvc/james/server/branches/v2.3/src/test/org/apache/james/test/mock/mailet/MockMailetConfig.java?rev=420593&r1=420592&r2=420593&view=diff
==============================================================================
--- james/server/branches/v2.3/src/test/org/apache/james/test/mock/mailet/MockMailetConfig.java
(original)
+++ james/server/branches/v2.3/src/test/org/apache/james/test/mock/mailet/MockMailetConfig.java
Mon Jul 10 10:46:45 2006
@@ -57,5 +57,16 @@
     public String getMailetName() {
         return mailetName;
     }
+    
+    // Override setProperty to work like it should in this MockMailetConfig
+    public Object setProperty(String key, String value) {
+        String oldValue = getProperty(key);
+        String newValue = value;
+
+        if (oldValue != null) {
+            newValue = oldValue + "," + value;
+        }
+        return super.setProperty(key, newValue);
+    }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message