import org.opendaylight.yangtools.yang.data.api.schema.xpath.XPathSchemaContext;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
+import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
public class JaxenTest {
private ConverterNamespaceContext convertNctx;
@Before
public void setup() throws URISyntaxException, IOException, ParseException, XPathExpressionException,
- UnsupportedAxisException {
+ UnsupportedAxisException, ReactorException {
final SchemaContext schemaContext = createSchemaContext();
assertNotNull(schemaContext);
return SchemaPath.create(true, rootQName, listAQName, leafAQName);
}
- private SchemaContext createSchemaContext() throws IOException, URISyntaxException {
- return TestUtils.loadSchemaContext(getClass().getResource("/test/documentTest").toURI());
+ private SchemaContext createSchemaContext() throws IOException, URISyntaxException, ReactorException {
+ return TestUtils.loadModules("/test/documentTest");
}
private static NormalizedNode<?, ?> createNormalizedNodes() {