[jira] Created: (JMOCK-221) http://www.jmock.org/override.html

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (JMOCK-221) http://www.jmock.org/override.html

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



[jira] Closed: (JMOCK-221) http://www.jmock.org/override.html

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/JMOCK-221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nat Pryce closed JMOCK-221.
---------------------------

         Assignee: Nat Pryce
       Resolution: Fixed
    Fix Version/s: Chore (ASAP)

Fixed.

> 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
>            Assignee: Nat Pryce
>            Priority: Trivial
>             Fix For: Chore (ASAP)
>
>
> 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