Remove DocumentedException.ErrorType
[netconf.git] / netconf / mdsal-netconf-connector / src / test / java / org / opendaylight / netconf / mdsal / connector / ops / ValidateTest.java
index 80d1e4e7fa69f1c4b705eb81e1a44fc80d0faa3b..37a7ba81750ed2a20e9886e606df6d7fe3139c95 100644 (file)
@@ -33,6 +33,7 @@ import org.opendaylight.netconf.mdsal.connector.DOMDataTransactionValidator.Vali
 import org.opendaylight.netconf.mdsal.connector.TransactionProvider;
 import org.opendaylight.yangtools.util.concurrent.FluentFutures;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
+import org.opendaylight.yangtools.yang.common.ErrorType;
 import org.w3c.dom.Document;
 
 @RunWith(MockitoJUnitRunner.StrictStubs.class)
@@ -62,7 +63,7 @@ public class ValidateTest {
             () -> validate("messages/mapping/validate/validate.xml"));
         assertEquals(ErrorSeverity.ERROR, e.getErrorSeverity());
         assertEquals(DocumentedException.ErrorTag.OPERATION_NOT_SUPPORTED, e.getErrorTag());
-        assertEquals(DocumentedException.ErrorType.PROTOCOL, e.getErrorType());
+        assertEquals(ErrorType.PROTOCOL, e.getErrorType());
     }
 
     @Test
@@ -72,7 +73,7 @@ public class ValidateTest {
             () -> validate("messages/mapping/validate/validate_no_source.xml"));
         assertEquals(ErrorSeverity.ERROR, e.getErrorSeverity());
         assertEquals(DocumentedException.ErrorTag.MISSING_ELEMENT, e.getErrorTag());
-        assertEquals(DocumentedException.ErrorType.PROTOCOL, e.getErrorType());
+        assertEquals(ErrorType.PROTOCOL, e.getErrorType());
     }
 
     @Test
@@ -82,7 +83,7 @@ public class ValidateTest {
             () -> validate("messages/mapping/validate/validate_running.xml"));
         assertEquals(ErrorSeverity.ERROR, e.getErrorSeverity());
         assertEquals(DocumentedException.ErrorTag.OPERATION_NOT_SUPPORTED, e.getErrorTag());
-        assertEquals(DocumentedException.ErrorType.PROTOCOL, e.getErrorType());
+        assertEquals(ErrorType.PROTOCOL, e.getErrorType());
     }
 
     @Test
@@ -108,7 +109,7 @@ public class ValidateTest {
             () -> validate("messages/mapping/validate/validate.xml", transactionProvider));
         assertEquals(ErrorSeverity.ERROR, e.getErrorSeverity());
         assertEquals(DocumentedException.ErrorTag.OPERATION_FAILED, e.getErrorTag());
-        assertEquals(DocumentedException.ErrorType.APPLICATION, e.getErrorType());
+        assertEquals(ErrorType.APPLICATION, e.getErrorType());
     }
 
     private void whenValidatorIsNotDefined() {