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