[
http://jira.codehaus.org/browse/JBEHAVE-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Elizabeth Keogh closed JBEHAVE-69.
----------------------------------
Resolution: Fixed
No mocks in 2.0; use Mockito instead
> Mocks should be refactorable in common IDEs.
> --------------------------------------------
>
> Key: JBEHAVE-69
> URL: http://jira.codehaus.org/browse/JBEHAVE-69
> Project: JBehave
> Issue Type: New Feature
> Reporter: Elizabeth Keogh
>
> I would like my mocks to be refactored when I refactor the classes they're
> mocking.
> One way to do this would be to "switch on" expectations and store the method
> called. So, given a class
> private interface MyClass {
> doesSomething(int numberOfTimes);
> }
> our mock setup would look like:
> ((MyClass)mock.expects()).doesSomething(3);
> If we ever switch to generics, we won't even need the cast.
--
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