On 1/9/06, Dennis Byrne <[EMAIL PROTECTED]> wrote:
>
> Will it be acceptable if all 3 MockServletContext.log methods wrap a
> static commons logging method call?


I wouldn't be averse to using Commons Logging here, but perhaps it would be
a little simpler to  just write to System.out or System.err, with a system
property to control the logging levels actually output?

Craig


Dennis Byrne
>
> >-----Original Message-----
> >From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, January 10, 2006 02:17 AM
> >To: 'Struts Users Mailing List'
> >Subject: Re: [shale] UnsupportedOperationException w/ Mock Objects
> >
> >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
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to