2 * Copyright (c) 2017 Pantheon Technologies, s.r.o. 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.parser.stmt.rfc6020;
10 import static org.junit.Assert.assertNotNull;
12 import java.io.IOException;
13 import java.net.URISyntaxException;
14 import org.junit.Test;
15 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
16 import org.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException;
17 import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
18 import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
20 public class YT826Test {
23 public void testWhenExpressionWhitespace() throws ReactorException, URISyntaxException, IOException,
24 YangSyntaxErrorException {
25 final SchemaContext schemaContext = StmtTestUtils.parseYangSource("/bugs/yangtools826/example.yang");
26 assertNotNull(schemaContext);