Search in sources :

Example 1 with MalformedSVGDocument

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());
}
Also used : SVGDocument(net.sf.latexdraw.parsers.svg.SVGDocument) MalformedSVGDocument(net.sf.latexdraw.parsers.svg.MalformedSVGDocument) URI(java.net.URI) Test(org.junit.Test)

Example 2 with MalformedSVGDocument

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"));
}
Also used : SVGDocument(net.sf.latexdraw.parsers.svg.SVGDocument) MalformedSVGDocument(net.sf.latexdraw.parsers.svg.MalformedSVGDocument) URI(java.net.URI) Before(org.junit.Before)

Example 3 with MalformedSVGDocument

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));
}
Also used : SVGDocument(net.sf.latexdraw.parsers.svg.SVGDocument) MalformedSVGDocument(net.sf.latexdraw.parsers.svg.MalformedSVGDocument) URI(java.net.URI) Test(org.junit.Test)

Aggregations

URI (java.net.URI)3 MalformedSVGDocument (net.sf.latexdraw.parsers.svg.MalformedSVGDocument)3 SVGDocument (net.sf.latexdraw.parsers.svg.SVGDocument)3 Test (org.junit.Test)2 Before (org.junit.Before)1