Migrate yang-common to JUnit5
[yangtools.git] / common / yang-common / src / test / java / org / opendaylight / yangtools / yang / common / OperationFailedExceptionTest.java
index 8bc171c122d5948dd88fbab3d1de1fde52c142cb..1e277b49128098ce32b09c6ccb0334eb5610f956 100644 (file)
@@ -9,15 +9,15 @@ package org.opendaylight.yangtools.yang.common;
 
 import static org.hamcrest.CoreMatchers.containsString;
 import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
 public class OperationFailedExceptionTest {
     @Test
     public void testOperationFailedException() {
         final Throwable cause = new Throwable("mock cause");
-        final RpcError rpcErrorShort = RpcResultBuilder.newError(ErrorType.RPC, "tag", "msg");
+        final RpcError rpcErrorShort = RpcResultBuilder.newError(ErrorType.RPC, new ErrorTag("tag"), "msg");
         final OperationFailedException operationFailedException1 = new OperationFailedException("error msg", cause,
                 rpcErrorShort);
         final OperationFailedException operationFailedException2 = new OperationFailedException("error msg",