|
From: Charles H. <Cha...@Su...> - 2004-02-27 19:34:15
|
Hey gang, I'm new to MockObjects (and absolutely loving it!!!!). I
created a test class which tests a command class which has an execute
method that takes an HttpServletRequest object. So I mocked the request
and a session (since the command gets a QualityTemplateBuilder object
from the session) and I added an attribute called "currentTemplate" to
the request.
However, when I run my test from ANT, the error message I see is as follows:
[junit] Testcase:
testExecute(com.sun.es.acac.quality.UpdateItemsCommandTest): FAILED
[junit] attributes does not contain currentTemplate
[junit] junit.framework.AssertionFailedError: attributes does not
contain currentTemplate
I'm attaching both the source file to be tested and the test class so
that someone can see if they see what I am doing wrong.
Thanks for your support!
Charles
|