[shale] UnsupportedOperationException w/ Mock Objects

2006-01-11 Thread Dennis Byrne
MockServletContext.log throws a UnsupportedOperationException, making 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() ?

Re: [shale] UnsupportedOperationException w/ Mock Objects

2006-01-10 Thread Craig McClanahan
On 1/10/06, Dennis Byrne <[EMAIL PROTECTED]> wrote: > > >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 > > Fair eno

Re: [shale] UnsupportedOperationException w/ Mock Objects

2006-01-10 Thread Dennis Byrne
>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 Fair enough :) I can see piping log(String, Throwable) to System.err, but I do

Re: [shale] UnsupportedOperationException w/ Mock Objects

2006-01-10 Thread Craig McClanahan
27;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

Re: [shale] UnsupportedOperationException w/ Mock Objects

2006-01-09 Thread Dennis Byrne
; >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 >

Re: [shale] UnsupportedOperationException w/ Mock Objects

2006-01-09 Thread Craig McClanahan
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 MockServletC

[shale] UnsupportedOperationException w/ Mock Objects

2006-01-09 Thread Dennis Byrne
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