|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (JMOCK-172) Make it easy to define a block of expectations that only occur in a given stateMake it easy to define a block of expectations that only occur in a given state
------------------------------------------------------------------------------- Key: JMOCK-172 URL: http://jira.codehaus.org/browse/JMOCK-172 Project: jMock Issue Type: New Feature Reporter: Nat Pryce If you want a bunch of expectations to only occur in a particular state, it's inconvenient to write "when" clauses after each one. It would be nice to specify the state(s) for an entire block of expectations, like this: checking(new Expectations(foo.is("bar")) {{ ... }} Perhaps a subclass of Expectations: checking(new ExpectationsWhen(foo.is("bar")) {{ ... }} -- 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 |
|
|
[jira] Updated: (JMOCK-172) Make it easy to define a block of expectations that only occur in a given state[ http://jira.codehaus.org/browse/JMOCK-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nat Pryce updated JMOCK-172: ---------------------------- Component/s: Library > Make it easy to define a block of expectations that only occur in a given state > ------------------------------------------------------------------------------- > > Key: JMOCK-172 > URL: http://jira.codehaus.org/browse/JMOCK-172 > Project: jMock > Issue Type: New Feature > Components: Library > Reporter: Nat Pryce > > If you want a bunch of expectations to only occur in a particular state, it's inconvenient to write "when" clauses after each one. It would be nice to specify the state(s) for an entire block of expectations, like this: > checking(new Expectations(foo.is("bar")) {{ > ... > }} > Perhaps a subclass of Expectations: > checking(new ExpectationsWhen(foo.is("bar")) {{ > ... > }} -- 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 |
|
|
[jira] Updated: (JMOCK-172) Make it easy to define a block of expectations that only occur in a given state[ http://jira.codehaus.org/browse/JMOCK-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nat Pryce updated JMOCK-172: ---------------------------- Affects Version/s: 2.4.0 Fix Version/s: 2.5.0 > Make it easy to define a block of expectations that only occur in a given state > ------------------------------------------------------------------------------- > > Key: JMOCK-172 > URL: http://jira.codehaus.org/browse/JMOCK-172 > Project: jMock > Issue Type: New Feature > Components: Library > Affects Versions: 2.4.0 > Reporter: Nat Pryce > Fix For: 2.5.0 > > > If you want a bunch of expectations to only occur in a particular state, it's inconvenient to write "when" clauses after each one. It would be nice to specify the state(s) for an entire block of expectations, like this: > checking(new Expectations(foo.is("bar")) {{ > ... > }} > Perhaps a subclass of Expectations: > checking(new ExpectationsWhen(foo.is("bar")) {{ > ... > }} -- 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 |
|
|
[jira] Updated: (JMOCK-172) Make it easy to define a block of expectations that only occur in a given state[ http://jira.codehaus.org/browse/JMOCK-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nat Pryce updated JMOCK-172: ---------------------------- Fix Version/s: (was: 2.5.0) > Make it easy to define a block of expectations that only occur in a given state > ------------------------------------------------------------------------------- > > Key: JMOCK-172 > URL: http://jira.codehaus.org/browse/JMOCK-172 > Project: jMock > Issue Type: New Feature > Components: Library > Affects Versions: 2.4.0 > Reporter: Nat Pryce > > If you want a bunch of expectations to only occur in a particular state, it's inconvenient to write "when" clauses after each one. It would be nice to specify the state(s) for an entire block of expectations, like this: > checking(new Expectations(foo.is("bar")) {{ > ... > }} > Perhaps a subclass of Expectations: > checking(new ExpectationsWhen(foo.is("bar")) {{ > ... > }} -- 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 |
|
|
[jira] Updated: (JMOCK-172) Make it easy to define a block of expectations that only occur in a given state[ http://jira.codehaus.org/browse/JMOCK-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nat Pryce updated JMOCK-172: ---------------------------- Priority: Minor (was: Major) > Make it easy to define a block of expectations that only occur in a given state > ------------------------------------------------------------------------------- > > Key: JMOCK-172 > URL: http://jira.codehaus.org/browse/JMOCK-172 > Project: jMock > Issue Type: New Feature > Components: Library > Affects Versions: 2.4.0 > Reporter: Nat Pryce > Priority: Minor > > If you want a bunch of expectations to only occur in a particular state, it's inconvenient to write "when" clauses after each one. It would be nice to specify the state(s) for an entire block of expectations, like this: > checking(new Expectations(foo.is("bar")) {{ > ... > }} > Perhaps a subclass of Expectations: > checking(new ExpectationsWhen(foo.is("bar")) {{ > ... > }} -- 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 |
| Free embeddable forum powered by Nabble | Forum Help |