X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-common%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fcommon%2FOperationFailedExceptionTest.java;fp=yang%2Fyang-common%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fcommon%2FOperationFailedExceptionTest.java;h=0000000000000000000000000000000000000000;hb=57f28636b0369e1b2d450a436e7fa0a262c6f971;hp=27e6c22fa40a78adaedec15aa5e882b4fa589bff;hpb=d3ec7354be57c3020fd02229cdb4fa6db76d557a;p=yangtools.git diff --git a/yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java b/yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java deleted file mode 100644 index 27e6c22fa4..0000000000 --- a/yang/yang-common/src/test/java/org/opendaylight/yangtools/yang/common/OperationFailedExceptionTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.yangtools.yang.common; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -import org.junit.Test; - -public class OperationFailedExceptionTest { - - @Test - public void testOperationFailedException() { - final Throwable cause = new Throwable("mock cause"); - final RpcError rpcErrorShort = RpcResultBuilder.newError(RpcError.ErrorType.RPC, "tag", "msg"); - final OperationFailedException operationFailedException1 = new OperationFailedException("error msg", cause, - rpcErrorShort); - final OperationFailedException operationFailedException2 = new OperationFailedException("error msg", - rpcErrorShort); - assertEquals(operationFailedException1.getErrorList(), operationFailedException2.getErrorList()); - assertTrue(operationFailedException1.toString().contains("error msg")); - } -}