On 1/9/06, Dennis Byrne <[EMAIL PROTECTED]> wrote: > > MockServletContext.log and many other methods throw a > UnsupportedOperationException. This makes it hard to test many core parts of > MyFaces. > > Was the intention here for the tester to override MockServletContext.log, > or does MockServletContext assume the tested code simply would/should not > call ExternalContext.log() ?
The intent was to incrementally implement the methods that people actually find useful, rather than try to predict everything people would need :-). Your example seems like a perfectly good case where we need such an implementation. Feel free to file bugs against specific methods that are not currently supported (and patches too, if you'd like them implemented faster). http://issues.apache.org/bugzilla/ Dennis Byrne Craig