Package javax.jcr

Examples of javax.jcr.Session.removeItem()


            binaryStore().removeValuesUnusedLongerThan(1, TimeUnit.MILLISECONDS);

            // expect 1 binary
            assertEquals("Incorrect number of binaries in store", 1, binariesCount());

            session.removeItem("/file3/binary");
            session.save();

            // sleep to give the binary change listener to mark the binaries as unused
            Thread.sleep(100);
            binaryStore().removeValuesUnusedLongerThan(1, TimeUnit.MILLISECONDS);
View Full Code Here


    @After
    public void tearDown() throws RepositoryException {
        Session session = getAdminSession();
        testRoot.remove();
        session.removeItem(refPath);
        session.save();
    }

    @SuppressWarnings("unchecked")
    @Test
View Full Code Here

    @After
    public void tearDown() throws RepositoryException {
        Session session = getAdminSession();
        testRoot.remove();
        session.removeItem(refPath);
        session.save();
    }

    @SuppressWarnings("unchecked")
    @Test
View Full Code Here

    }

    @After
    public void tearDown() throws RepositoryException {
        Session s = testNode.getSession();
        s.removeItem(TEST_PATH);
        s.save();
    }

    @Test
    public void testCopyNode() throws RepositoryException {
View Full Code Here

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.