Re: Unit testing Tapestry 4.1 components with TestNG and Easymock

2007-06-04 Thread Ray McBride
setProduct(product) when you invoke getSaving() ? expect(viewProductDetail.getSaving()).andReturn(saving); replay(); saving = viewProductDetail.getSaving(); verify(); assertEquals(saving, 0.02); } On 6/1/07, Ray McBride [EMAIL PROTECTED] wrote: Hi, Thanks for you quick

Re: Unit testing Tapestry 4.1 components with TestNG and Easymock

2007-06-01 Thread Ray McBride
getSession(boolean) also returns a value - so you'd have to define what that return value is with a statement like: expect(webRequest.getSession(true)).andReturn(session); (or andReturn(null) ) . On 6/1/07, Ray McBride [EMAIL PROTECTED] wrote: Hi All, We have recently upgrading one of our apps