diff --git a/owner/src/test/java/org/aeonbits/owner/event/ExceptionTests.java b/owner/src/test/java/org/aeonbits/owner/event/ExceptionTests.java index 6ca87c76..8ddd2037 100644 --- a/owner/src/test/java/org/aeonbits/owner/event/ExceptionTests.java +++ b/owner/src/test/java/org/aeonbits/owner/event/ExceptionTests.java @@ -18,7 +18,7 @@ public class ExceptionTests { @Test public void testRollbackBatchExceptionConstruction() { // just ensure all constructors are available on the class and the hierarchy is correct - RollbackException ex = new RollbackBatchException(); + new RollbackBatchException(); new RollbackBatchException("message"); new RollbackBatchException(new Exception()); new RollbackBatchException("message", new Exception()); @@ -27,7 +27,7 @@ public void testRollbackBatchExceptionConstruction() { @Test public void testRollbackOperationExceptionConstruction() { // just ensure all constructors are available on the class and the hierarchy is correct - RollbackException ex = new RollbackOperationException(); + new RollbackOperationException(); new RollbackOperationException("message"); new RollbackOperationException(new Exception()); new RollbackOperationException("message", new Exception());