Move yang-common(-netty)
[yangtools.git] / yang / yang-common / src / test / java / org / opendaylight / yangtools / yang / common / OperationFailedExceptionTest.java
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 (file)
index 27e6c22..0000000
+++ /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"));
-    }
-}