[jira] Created: (JMOCK-156) Does not verify mocks when throwing an expected exception

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

[jira] Created: (JMOCK-156) Does not verify mocks when throwing an expected exception

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

Reply to Author | View Threaded | Show Only this Message

Does not verify mocks when throwing an expected exception
---------------------------------------------------------

                 Key: JMOCK-156
                 URL: http://jira.codehaus.org/browse/JMOCK-156
             Project: jMock
          Issue Type: Bug
          Components: Library
    Affects Versions: Chore (ASAP)
            Reporter: Steve Freeman
         Attachments: JUnit4ChecksThrownExceptions.java

Attached a test example that demonstrates the bug. It should fail, but doesn't.

The exception throws straight pass the expectation checking in JMock.

--
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] Commented: (JMOCK-156) Does not verify mocks when throwing an expected exception

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

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/JMOCK-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_110786 ]

Nat Pryce commented on JMOCK-156:
---------------------------------

Could you write a test that should *pass* but doesn't?

> Does not verify mocks when throwing an expected exception
> ---------------------------------------------------------
>
>                 Key: JMOCK-156
>                 URL: http://jira.codehaus.org/browse/JMOCK-156
>             Project: jMock
>          Issue Type: Bug
>          Components: Library
>    Affects Versions: Chore (ASAP)
>            Reporter: Steve Freeman
>         Attachments: JUnit4ChecksThrownExceptions.java
>
>
> Attached a test example that demonstrates the bug. It should fail, but doesn't.
> The exception throws straight pass the expectation checking in JMock.

--
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-156) Does not verify mocks when throwing an expected exception

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

Reply to Author | View Threaded | Show Only this Message


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

Nat Pryce updated JMOCK-156:
----------------------------

    Fix Version/s: 2.5.0

> Does not verify mocks when throwing an expected exception
> ---------------------------------------------------------
>
>                 Key: JMOCK-156
>                 URL: http://jira.codehaus.org/browse/JMOCK-156
>             Project: jMock
>          Issue Type: Bug
>          Components: Library
>    Affects Versions: Chore (ASAP)
>            Reporter: Steve Freeman
>             Fix For: 2.5.0
>
>         Attachments: JUnit4ChecksThrownExceptions.java
>
>
> Attached a test example that demonstrates the bug. It should fail, but doesn't.
> The exception throws straight pass the expectation checking in JMock.

--
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-156) Does not verify mocks when throwing an expected exception

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

Reply to Author | View Threaded | Show Only this Message


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

Nat Pryce updated JMOCK-156:
----------------------------

             Assignee: Nat Pryce
    Affects Version/s:     (was: Chore (ASAP))
                       2.4.0

> Does not verify mocks when throwing an expected exception
> ---------------------------------------------------------
>
>                 Key: JMOCK-156
>                 URL: http://jira.codehaus.org/browse/JMOCK-156
>             Project: jMock
>          Issue Type: Bug
>          Components: Library
>    Affects Versions: 2.4.0
>            Reporter: Steve Freeman
>            Assignee: Nat Pryce
>             Fix For: 2.5.0
>
>         Attachments: JUnit4ChecksThrownExceptions.java
>
>
> Attached a test example that demonstrates the bug. It should fail, but doesn't.
> The exception throws straight pass the expectation checking in JMock.

--
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] Resolved: (JMOCK-156) Does not verify mocks when throwing an expected exception

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

Reply to Author | View Threaded | Show Only this Message


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

Nat Pryce resolved JMOCK-156.
-----------------------------

    Resolution: Fixed

Fixed in SVN for JUnit 4.4.

Fix needs to be reimplemented for JUnit 4.5

> Does not verify mocks when throwing an expected exception
> ---------------------------------------------------------
>
>                 Key: JMOCK-156
>                 URL: http://jira.codehaus.org/browse/JMOCK-156
>             Project: jMock
>          Issue Type: Bug
>          Components: Library
>    Affects Versions: 2.4.0
>            Reporter: Steve Freeman
>            Assignee: Nat Pryce
>             Fix For: 2.5.0
>
>         Attachments: JUnit4ChecksThrownExceptions.java
>
>
> Attached a test example that demonstrates the bug. It should fail, but doesn't.
> The exception throws straight pass the expectation checking in JMock.

--
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


LightInTheBox - Buy quality products at wholesale price