Change-Id: I479299cacf0b2070fac6325a0d0165362ee0d0fa
Signed-off-by: Martin Vitez <mvitez@cisco.com>
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
LOG.debug("Serialized JSON: {}", writer.toString());
}
LOG.debug("Serialized JSON: {}", writer.toString());
}
- private static SchemaContext loadModules(final String resourceDirectory) throws IOException {
+ private static SchemaContext loadModules(final String resourceDirectory) throws IOException, URISyntaxException {
YangContextParser parser = new YangParserImpl();
YangContextParser parser = new YangParserImpl();
- String path = StreamToNormalizedNodeTest.class.getResource(resourceDirectory).getPath();
+ URI path = StreamToNormalizedNodeTest.class.getResource(resourceDirectory).toURI();
final File testDir = new File(path);
final String[] fileList = testDir.list();
final List<File> testFiles = new ArrayList<File>();
final File testDir = new File(path);
final String[] fileList = testDir.list();
final List<File> testFiles = new ArrayList<File>();