http://www.jmock.org/override.html----------------------------------
Key: JMOCK-221
URL:
http://jira.codehaus.org/browse/JMOCK-221 Project: jMock
Issue Type: Improvement
Components: JMock 2.x.x Library, Website
Affects Versions: 2.5.1
Environment: Just an issue with the website
Reporter: Joseph Rader
Priority: Trivial
The issue is with the example on the webpage
http://www.jmock.org/override.html. The below is the pertinent code:
@Override
public void setUp() {
context.checking(new Expectations() {{
ignoring (parent).addChild(child); when(test.isNot("running"));
}});
// Creating the child adds it to the parent
child = new Child(parent);
test.become("fully-set-up");
}
The strings "running" and "fully-set-up" should not be different. They should either be one or the other for the set-up or subsequent tests to work. At least that's what I found when using jMock.
Thanks!
~Joe
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email