use of net.sf.latexdraw.parsers.svg.MalformedSVGDocument in project latexdraw by arnobl.
the class TestSVGDocument method testSVGDocument.
@Test
public void testSVGDocument() throws MalformedSVGDocument, URISyntaxException, IOException {
SVGDocument doc = new SVGDocument(new URI("src/test/resources/test.svg"));
assertNotNull(doc.getFirstChild());
assertNotNull(doc.getLastChild());
}
use of net.sf.latexdraw.parsers.svg.MalformedSVGDocument in project latexdraw by arnobl.
the class TestSVGDocument method setUp.
@Before
public void setUp() throws MalformedSVGDocument, URISyntaxException, IOException {
doc1 = new SVGDocument();
doc2 = new SVGDocument(new URI("src/test/resources/test.svg"));
}
use of net.sf.latexdraw.parsers.svg.MalformedSVGDocument in project latexdraw by arnobl.
the class TestSVGDocument method testIsEqualNodeURI.
@Test
public void testIsEqualNodeURI() throws MalformedSVGDocument, URISyntaxException, IOException {
SVGDocument doc = new SVGDocument(new URI("src/test/resources/test.svg"));
assertTrue(doc2.isEqualNode(doc));
assertFalse(doc2.isEqualNode(null));
assertFalse(doc2.isEqualNode(doc1));
}
Aggregations