Remove use of YangInstanceIdentifier.EMPTY
[mdsal.git] / dom / mdsal-dom-inmemory-datastore / src / test / java / org / opendaylight / mdsal / dom / store / inmemory / InMemoryDOMStoreThreePhaseCommitCohortTest.java
index ff98ba37e7aa02b1b9f02ac36c142c81464fe443..c47ae98dc8a8b9d8237e090456c5f5ca9ec6dd74 100644 (file)
@@ -94,7 +94,7 @@ public class InMemoryDOMStoreThreePhaseCommitCohortTest {
     @SuppressWarnings({ "checkstyle:IllegalThrows", "checkstyle:avoidHidingCauseException" })
     @Test(expected = OptimisticLockFailedException.class)
     public void canCommitTestWithOptimisticLockFailedException() throws Throwable {
-        doThrow(new ConflictingModificationAppliedException(YangInstanceIdentifier.EMPTY, "testException"))
+        doThrow(new ConflictingModificationAppliedException(YangInstanceIdentifier.empty(), "testException"))
                 .when(IN_MEMORY_DOM_DATA_STORE).validate(any());
         try {
             inMemoryDOMStoreThreePhaseCommitCohort.canCommit().get();
@@ -108,7 +108,7 @@ public class InMemoryDOMStoreThreePhaseCommitCohortTest {
     @SuppressWarnings({ "checkstyle:IllegalThrows", "checkstyle:avoidHidingCauseException" })
     @Test(expected = TransactionCommitFailedException.class)
     public void canCommitTestWithTransactionCommitFailedException() throws Throwable {
-        doThrow(new DataValidationFailedException(YangInstanceIdentifier.EMPTY, "testException"))
+        doThrow(new DataValidationFailedException(YangInstanceIdentifier.empty(), "testException"))
                 .when(IN_MEMORY_DOM_DATA_STORE).validate(any());
         try {
             inMemoryDOMStoreThreePhaseCommitCohort.canCommit().get();