X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fyang-common%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fcommon%2FOperationFailedExceptionTest.java;h=1e277b49128098ce32b09c6ccb0334eb5610f956;hb=c3a7ca0aa9faa21943fe472f49e94c43943ab90d;hp=8bc171c122d5948dd88fbab3d1de1fde52c142cb;hpb=237aadaf86f948dc9f9cd34d3d2e80fe7c5ecf60;p=yangtools.git diff --git a/common/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java b/common/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java index 8bc171c122..1e277b4912 100644 --- a/common/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java +++ b/common/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java @@ -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",