Package org.apache.jackrabbit.spi

Examples of org.apache.jackrabbit.spi.Path.subPath()


            fail("Path.subPath with from == -1 to must throw IllegalArumentException");
        } catch (IllegalArgumentException e) {
            // ok
        }
        try {
            p.subPath(1, p.getLength()+1);
            fail("Path.subPath with to > length to must throw IllegalArumentException");
        } catch (IllegalArgumentException e) {
            // ok
        }
    }


        JcrPath[] tests = JcrPath.getTests();
        for (int i = 0; i < tests.length; i++) {
            if (tests[i].isValid() && !tests[i].isNormalized()) {
                Path p = resolver.getQPath(tests[i].path);
                try {
                    p.subPath(0, p.getLength());
                    fail("Path.subPath on a non-normalized path to must throw IllegalArumentException");
                } catch (RepositoryException e) {
                    // ok
                }
            }

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.