X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-model-export%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Fexport%2Ftest%2FSimpleModuleTest.java;h=3ab8c7a6815e8c92f006f5908294264a56b55ee4;hb=ecb48e0715846aef4830a0c8eee40bffa96ae003;hp=546741aa9ce378fc434439d279e1458cba626a9e;hpb=6b5d20f6513bc3e6e5db4a2058ee81308edaa9c8;p=yangtools.git diff --git a/yang/yang-model-export/src/test/java/org/opendaylight/yangtools/yang/model/export/test/SimpleModuleTest.java b/yang/yang-model-export/src/test/java/org/opendaylight/yangtools/yang/model/export/test/SimpleModuleTest.java index 546741aa9c..3ab8c7a681 100644 --- a/yang/yang-model-export/src/test/java/org/opendaylight/yangtools/yang/model/export/test/SimpleModuleTest.java +++ b/yang/yang-model-export/src/test/java/org/opendaylight/yangtools/yang/model/export/test/SimpleModuleTest.java @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2015 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.model.export.test; import java.io.File; @@ -22,7 +29,7 @@ import org.opendaylight.yangtools.yang.model.repo.spi.SchemaListenerRegistration import org.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceListener; import org.opendaylight.yangtools.yang.model.repo.util.FilesystemSchemaSourceCache; import org.opendaylight.yangtools.yang.parser.repo.SharedSchemaRepository; -import org.opendaylight.yangtools.yang.parser.util.TextToASTTransformer; +import org.opendaylight.yangtools.yang.parser.rfc6020.repo.TextToASTTransformer; public class SimpleModuleTest { @@ -79,7 +86,7 @@ public class SimpleModuleTest { } private void testSetOfModules(final Collection source) throws Exception { - final SchemaContext schemaContext = schemaContextFactory.createSchemaContext(source).checkedGet(); + final SchemaContext schemaContext = schemaContextFactory.createSchemaContext(source).get(); final File outDir = new File("target/collection"); outDir.mkdirs(); for (final Module module : schemaContext.getModules()) { @@ -87,7 +94,7 @@ public class SimpleModuleTest { } } - private File exportModule(final SchemaContext schemaContext, final Module module, final File outDir) + private static File exportModule(final SchemaContext schemaContext, final Module module, final File outDir) throws Exception { final File outFile = new File(outDir, YinExportUtils.wellFormedYinName(module.getName(), module.getRevision())); try (OutputStream output = new FileOutputStream(outFile)) {