[jboss-jira] [JBoss JIRA] (JBJCA-1008) Assert.fail() cannot be surrounded with a try-catch block which catches a general Throwable
Jesper Pedersen (JIRA)
jira-events at lists.jboss.org
Fri Mar 15 08:29:41 EDT 2013
[ https://issues.jboss.org/browse/JBJCA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesper Pedersen updated JBJCA-1008:
-----------------------------------
Fix Version/s: 1.1.0.Beta5
Affects Version/s: 1.1.0.Beta4
> Assert.fail() cannot be surrounded with a try-catch block which catches a general Throwable
> -------------------------------------------------------------------------------------------
>
> Key: JBJCA-1008
> URL: https://issues.jboss.org/browse/JBJCA-1008
> Project: IronJacamar
> Issue Type: Bug
> Components: Test suite
> Affects Versions: 1.0.15.Final, 1.1.0.Beta4
> Reporter: Ivo Studensky
> Assignee: Ivo Studensky
> Fix For: 1.0.16.Final, 1.1.0.Beta5
>
>
> In IJ test suite there are occurrences of Assert.fail(String) surrounding with a try-catch block that catches a general Throwable. This effectively means that AssertionError produced by Assert.fail() is eaten by the following catch clause, usually quietly. And then such a test passes instead of it fails.
> Affected tests:
> {noformat}
> adapters/src/test/java/org/jboss/jca/adapters/jdbc/unit/H2SecurityDomainMultipleUsersTestCase.java
> core/src/test/java/org/jboss/jca/core/connectionmanager/connections/InterleavingTestCase.java
> deployers/src/test/java/org/jboss/jca/deployers/annotations/AnnotationsTestCase.java
> embedded/src/test/java/org/jboss/jca/embedded/unit/ShrinkWrapTestCase.java
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list