2 * Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.stmt;
10 import static org.hamcrest.CoreMatchers.containsString;
12 import org.junit.jupiter.api.Test;
14 class Bug8831Test extends AbstractYangTest {
17 assertEffectiveModelDir("/bugs/bug8831/valid");
21 void invalidModelsTest() {
22 assertSourceException(containsString("has default value 'any' marked with an if-feature statement"),
23 "/bugs/bug8831/invalid/inv-model.yang");
27 void invalidModelsTest2() {
28 assertSourceException(containsString("has default value 'any' marked with an if-feature statement"),
29 "/bugs/bug8831/invalid/inv-model2.yang");