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
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