Github user ajs6f commented on a diff in the pull request:
https://github.com/apache/jena/pull/170#discussion_r80697618
--- Diff:
jena-arq/src/test/java/org/apache/jena/sparql/transaction/AbstractTestTransPromote.java
---
@@ -270,15 +281,30 @@ private void run_08(boolean b) {
@Test
public void promote_11() { promote_readCommit_txnCommit(true, false) ;
}
- @Test(expected = TDBTransactionException.class)
- public void promote_12() { promote_readCommit_txnCommit(false, true) ;
}
+ @Test
+ public void promote_12() {
+ expect(()->promote_readCommit_txnCommit(false, true) ,
+ getTransactionExceptionClass()) ;
+ }
+
+ private void expect(Runnable runnable, Class<?>...classes) {
--- End diff --
This might be a pinch clearer as `... Class<? extends Exception>...classes)
{`...
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---