use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGAttr method testCloneNode.
@Test
public void testCloneNode() {
SVGAttr attr = new SVGAttr("n", "v", node);
SVGAttr attr2 = (SVGAttr) attr.cloneNode(false);
assertNotNull(attr2);
assertEquals(attr.getName(), attr2.getName());
assertEquals(attr.getValue(), attr2.getValue());
assertEquals(attr.getOwnerElement(), attr2.getOwnerElement());
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGAttr method testUselessMethods.
@Test
public void testUselessMethods() {
SVGAttr attr = new SVGAttr("", "", node);
assertNull(attr.removeChild(null));
assertNull(attr.insertBefore(null, null));
assertNull(attr.getAttributes());
assertNull(attr.getFirstChild());
assertNull(attr.getLastChild());
assertNull(attr.appendChild(null));
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGAttr method testLookupNamespaceURINULL.
@Test
public void testLookupNamespaceURINULL() {
SVGAttr attr = new SVGAttr("pref:n", "", node);
assertNull(attr.lookupNamespaceURI(null));
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGAttr method testGetNodeName.
@Test
public void testGetNodeName() {
SVGAttr attr = new SVGAttr("attrNodeName", "", node);
assertEquals("attrNodeName", attr.getNodeName());
}
use of net.sf.latexdraw.parsers.svg.SVGAttr in project latexdraw by arnobl.
the class TestSVGAttr method testGetNamespaceURINULL.
@Test
public void testGetNamespaceURINULL() {
SVGAttr attr = new SVGAttr("pref:n", "", node);
assertNull(attr.getNamespaceURI());
}
Aggregations