[
https://issues.apache.org/jira/browse/JCR-1420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572881#action_12572881
]
Alexander Klimetschek commented on JCR-1420:
--------------------------------------------
I was looking for a expectThisException(String s, Exception e) method in the
Junit API, didn't find one, where catch + fail would be the right solution -
although the exception stack trace is lost. I found myself using
assertTrue("message", false) instead. Thanks for the pointer!
> Add test for Node.restore() may throw InvalidStateException
> -----------------------------------------------------------
>
> Key: JCR-1420
> URL: https://issues.apache.org/jira/browse/JCR-1420
> Project: Jackrabbit
> Issue Type: Test
> Components: jackrabbit-core, test
> Reporter: Alexander Klimetschek
> Assignee: Jukka Zitting
> Fix For: 1.5
>
> Attachments: jackrabbit-core.unit-test-for-jcr-1197.patch
>
>
> Add a unit test for JCR-1399 in the 1.3 branch.
> A test for the original feature in the trunk/1.4 (JCR-1197) needs a separate
> issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.