X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fstmt%2FBug4410Test.java;fp=yang%2Fyang-parser-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fstmt%2FBug4410Test.java;h=0000000000000000000000000000000000000000;hb=1cc6359e5bae1459582e9262a24ca56f23bcc70f;hp=5543b3f25177ce7f0a4451b57d8120f8c469ebb2;hpb=3b445156dfea75955b98f40208ffea51fe252209;p=yangtools.git diff --git a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug4410Test.java b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug4410Test.java deleted file mode 100644 index 5543b3f251..0000000000 --- a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug4410Test.java +++ /dev/null @@ -1,33 +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.stmt; - -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import com.google.common.base.Throwables; -import org.junit.Test; -import org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException; -import org.opendaylight.yangtools.yang.parser.spi.meta.SomeModifiersUnresolvedException; - -public class Bug4410Test { - - @Test - public void test() throws Exception { - try { - StmtTestUtils.parseYangSources("/bugs/bug4410"); - fail("SomeModifiersUnresolvedException should be thrown."); - } catch (SomeModifiersUnresolvedException e) { - Throwable rootCause = Throwables.getRootCause(e); - assertTrue(rootCause instanceof InferenceException); - final String message = rootCause.getMessage(); - assertTrue(message.startsWith("Type [(foo)")); - assertTrue(message.contains("was not found")); - } - } -}