[arquillian-issues] [JBoss JIRA] (ARQ-181) When using @Test expected exception, the internal state of the TestResult is unknown - JUnit

Aslak Knutsen (JIRA) issues at jboss.org
Tue Jun 24 12:52:28 EDT 2014


     [ https://issues.jboss.org/browse/ARQ-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aslak Knutsen closed ARQ-181.
-----------------------------



> When using @Test expected exception, the internal state of the TestResult is unknown - JUnit
> --------------------------------------------------------------------------------------------
>
>                 Key: ARQ-181
>                 URL: https://issues.jboss.org/browse/ARQ-181
>             Project: Arquillian
>          Issue Type: Bug
>          Components: Test Harness Integration
>            Reporter: Aslak Knutsen
>            Assignee: Aslak Knutsen
>            Priority: Minor
>             Fix For: 1.1.5.Final
>
>
> When using the ExpectedException feature in the TestFrameworks the internal TestResult object in Arquillian is in an unknown state. Arquillian catches the thrown exception, but the actual validation of it is done in the test framework after Arquillian is done with the test invocation. Arquillian can only know that a Exception has been thrown, but not if it is expected or not.
> JUnit
> @Test(expected=Exception.class) 
> TestNG
> @Test(expectedException=Exception.class)
> @ExpectedException(Exception.class) 
> Follow up with TestNG and JUnit to see how this can be done..



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the arquillian-issues mailing list