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/07/10 19:46:45 UTC
svn commit: r420593 -
/james/server/branches/v2.3/src/test/org/apache/james/test/mock/mailet/MockMailetConfig.java
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