Author: niallp Date: Thu May 29 08:19:44 2008 New Revision: 661352 URL: http://svn.apache.org/viewvc?rev=661352&view=rev Log: implement log() methods
Modified: commons/proper/chain/trunk/src/test/org/apache/commons/chain/web/servlet/MockServletContext.java Modified: commons/proper/chain/trunk/src/test/org/apache/commons/chain/web/servlet/MockServletContext.java URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/src/test/org/apache/commons/chain/web/servlet/MockServletContext.java?rev=661352&r1=661351&r2=661352&view=diff ============================================================================== --- commons/proper/chain/trunk/src/test/org/apache/commons/chain/web/servlet/MockServletContext.java (original) +++ commons/proper/chain/trunk/src/test/org/apache/commons/chain/web/servlet/MockServletContext.java Thu May 29 08:19:44 2008 @@ -21,6 +21,10 @@ import javax.servlet.Servlet; import javax.servlet.ServletContext; import javax.servlet.ServletException; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; @@ -33,6 +37,7 @@ public class MockServletContext implements ServletContext { + private Log log = LogFactory.getLog(MockServletContext.class); private Hashtable attributes = new Hashtable(); private Hashtable parameters = new Hashtable(); @@ -125,15 +130,15 @@ } public void log(String message) { - throw new UnsupportedOperationException(); + log.info(message); } public void log(Exception exception, String message) { - throw new UnsupportedOperationException(); + log.error(message, exception); } public void log(String message, Throwable exception) { - throw new UnsupportedOperationException(); + log.error(message, exception); } public void removeAttribute(String name) {