/*
* 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.yin;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.Optional;
import org.junit.Test;
import org.opendaylight.yangtools.yang.model.api.Module;
public class YinFileMetaStmtsTest extends AbstractYinModulesTest {
@Test
public void testMetaStatements() {
Module testModule = context.findModules("ietf-netconf-monitoring").iterator().next();
assertNotNull(testModule);
assertEquals(Optional.of("IETF NETCONF (Network Configuration) Working Group"), testModule.getOrganization());
assertEquals(Optional.of("WG Web: \n"
+ "WG List: \n"
+ "\n"
+ "WG Chair: Mehmet Ersue\n"
+ " \n"
+ "\n"
+ "WG Chair: Bert Wijnen\n"
+ " \n"
+ "\n"
+ "Editor: Mark Scott\n"
+ " \n"
+ "\n"
+ "Editor: Martin Bjorklund\n"
+ " "), testModule.getContact());
assertEquals(Optional.of("NETCONF Monitoring Module.\n" + "All elements in this module are read-only.\n" + "\n"
+ "Copyright (c) 2010 IETF Trust and the persons identified as\n" + "authors of the code. All rights "
+ "reserved.\n" + "\n" + "Redistribution and use in source and binary forms, with or\n" + "without "
+ "modification, is permitted pursuant to, and subject\n" + "to the license terms contained in, the "
+ "Simplified BSD\n" + "License set forth in Section 4.c of the IETF Trust's\n" + "Legal Provisions "
+ "Relating to IETF Documents\n" + "(http://trustee.ietf.org/license-info).\n" + "\n" + "This version "
+ "of this YANG module is part of RFC 6022; see\n" + "the RFC itself for full legal notices."),
testModule.getDescription());
}
}