@SuppressWarnings("unused")
@Test
public void testSVGDocument() throws MalformedSVGDocument, URISyntaxException, IOException {
try {
new SVGDocument(null);
fail();
}
catch(IllegalArgumentException e){ /* ok */ }
try {
new SVGDocument(new URI("dfqsfg")); //$NON-NLS-1$
fail();
}
catch(MalformedSVGDocument e){ /* ok */ }
catch(FileNotFoundException e){ /* ok */ }
SVGDocument doc = new SVGDocument(new URI("src/resources/test/res/test.svg")); //$NON-NLS-1$
assertNotNull(doc.getFirstChild());
assertNotNull(doc.getLastChild());
}