checkStyleViolationSeverity=error implemented for mdsal-dom-spi module
[mdsal.git] / dom / mdsal-dom-spi / src / test / java / org / opendaylight / mdsal / dom / spi / store / SnapshotBackedReadWriteTransactionTest.java
index 7b361a9b24d317ab47e46584e369727a58b3572e..30484194721ee0eac79b3a324638617acbab2ccb 100644 (file)
@@ -29,7 +29,7 @@ public class SnapshotBackedReadWriteTransactionTest {
 
     private static final DataTreeSnapshot DATA_TREE_SNAPSHOT = mock(DataTreeSnapshot.class);
     private static final DataTreeModification DATA_TREE_MODIFICATION = mock(DataTreeModification.class);
-    private static final TransactionReadyPrototype TRANSACTION_READY_PROTOTYPE =  mock(TransactionReadyPrototype.class);
+    private static final TransactionReadyPrototype TRANSACTION_READY_PROTOTYPE = mock(TransactionReadyPrototype.class);
     private SnapshotBackedReadWriteTransaction snapshotBackedReadWriteTransaction;
 
     @Before
@@ -49,6 +49,7 @@ public class SnapshotBackedReadWriteTransactionTest {
         assertEquals(optional, snapshotBackedReadWriteTransaction.read(YangInstanceIdentifier.EMPTY).get());
     }
 
+    @SuppressWarnings({"checkstyle:IllegalThrows", "checkstyle:IllegalCatch"})
     @Test(expected = ReadFailedException.class)
     public void readTestWithNullException() throws Throwable {
         doReturn(null).when(DATA_TREE_MODIFICATION).readNode(YangInstanceIdentifier.EMPTY);
@@ -60,6 +61,7 @@ public class SnapshotBackedReadWriteTransactionTest {
         }
     }
 
+    @SuppressWarnings({"checkstyle:IllegalThrows", "checkstyle:IllegalCatch"})
     @Test(expected = ReadFailedException.class)
     public void readNodeTestWithException() throws Throwable {
         doThrow(new NullPointerException("no Node")).when(DATA_TREE_MODIFICATION).readNode(any());
@@ -71,6 +73,7 @@ public class SnapshotBackedReadWriteTransactionTest {
         }
     }
 
+    @SuppressWarnings({"checkstyle:IllegalThrows", "checkstyle:IllegalCatch"})
     @Test(expected = ReadFailedException.class)
     public void existsTestWithException() throws Throwable {
         doThrow(new NullPointerException("no Node")).when(DATA_TREE_MODIFICATION).readNode(any());
@@ -81,4 +84,4 @@ public class SnapshotBackedReadWriteTransactionTest {
             throw e.getCause();
         }
     }
-}
\ No newline at end of file
+}