public static void main(String[] args) { XPointerTest test = new XPointerTest("command line xpointer tests"); test.testXmlns(); test.testSchemes(); }
public void testSchemes() { XPointer xp = new XPointer(runtime, "xmlns(a=http://example.com/a) a:unk(a=^^b)", 1024000); assertNotNull(xp); xp = new XPointer(runtime, "xmlns(a=http://example.com/a)xmlns(b=http://example.com/b) a:unk(a) b:unk(b)", 1024000); assertNotNull(xp); /* xp = new XPointer("xmlns(a=http://example.com/^(a^))xmlns(b=http://example.com/b) c:unk()", 1024000); assertNotNull(xp); */ } }
public void testXmlns() { XPointer xp = new XPointer(runtime, "xmlns(a=http://example.com/a) xmlns(b=http://example.com/b)", 1024000); assertNotNull(xp); xp = new XPointer(runtime, "xmlns(a=http://example.com/a)xmlns(b=http://example.com/b)", 1024000); assertNotNull(xp); xp = new XPointer(runtime, "xmlns(a=http://example.com/^(a^))xmlns(b=http://example.com/b)", 1024000); assertNotNull(xp); }