X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=dom%2Fmdsal-dom-inmemory-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fdom%2Fstore%2Finmemory%2FInMemoryDOMStoreThreePhaseCommitCohortTest.java;h=2a9b39145d2bab243b675b4725487e04551e3403;hb=41c34ca065881c748d1811b7ba6a5145ce6ed608;hp=e8abd9e52b6983e824c331e40aac15940abf14f9;hpb=2f71bca95e4b26d0f612b283aab4ab3896cb2c96;p=mdsal.git diff --git a/dom/mdsal-dom-inmemory-datastore/src/test/java/org/opendaylight/mdsal/dom/store/inmemory/InMemoryDOMStoreThreePhaseCommitCohortTest.java b/dom/mdsal-dom-inmemory-datastore/src/test/java/org/opendaylight/mdsal/dom/store/inmemory/InMemoryDOMStoreThreePhaseCommitCohortTest.java index e8abd9e52b..2a9b39145d 100644 --- a/dom/mdsal-dom-inmemory-datastore/src/test/java/org/opendaylight/mdsal/dom/store/inmemory/InMemoryDOMStoreThreePhaseCommitCohortTest.java +++ b/dom/mdsal-dom-inmemory-datastore/src/test/java/org/opendaylight/mdsal/dom/store/inmemory/InMemoryDOMStoreThreePhaseCommitCohortTest.java @@ -62,6 +62,7 @@ public class InMemoryDOMStoreThreePhaseCommitCohortTest { verify(IN_MEMORY_DOM_DATA_STORE).validate(any()); } + @SuppressWarnings({"checkstyle:IllegalThrows", "checkstyle:IllegalCatch"}) @Test(expected = OptimisticLockFailedException.class) public void canCommitTestWithOptimisticLockFailedException() throws Throwable { doThrow(new ConflictingModificationAppliedException(YangInstanceIdentifier.EMPTY, "testException")) @@ -75,6 +76,7 @@ public class InMemoryDOMStoreThreePhaseCommitCohortTest { } } + @SuppressWarnings({"checkstyle:IllegalThrows", "checkstyle:IllegalCatch"}) @Test(expected = TransactionCommitFailedException.class) public void canCommitTestWithTransactionCommitFailedException() throws Throwable { doThrow(new DataValidationFailedException(YangInstanceIdentifier.EMPTY, "testException")) @@ -88,6 +90,7 @@ public class InMemoryDOMStoreThreePhaseCommitCohortTest { } } + @SuppressWarnings({"checkstyle:IllegalThrows", "checkstyle:IllegalCatch"}) @Test(expected = UnsupportedOperationException.class) public void canCommitTestWithUnknownException() throws Throwable { doThrow(new UnsupportedOperationException("testException")) @@ -108,6 +111,7 @@ public class InMemoryDOMStoreThreePhaseCommitCohortTest { verify(IN_MEMORY_DOM_DATA_STORE).prepare(any()); } + @SuppressWarnings({"checkstyle:IllegalThrows", "checkstyle:IllegalCatch"}) @Test(expected = UnsupportedOperationException.class) public void preCommitTestWithUnknownException() throws Throwable { doThrow(new UnsupportedOperationException("testException"))