Package org.apache.jackrabbit.core

Examples of org.apache.jackrabbit.core.Tail


                super.onEvent(events);
            }
        };
        addEventListener(result);

        Tail tail = Tail.start(new File("target", "jcr.log"), MESSAGE);
        try {
            testRootNode.addNode("foo");
            superuser.save();

            removeEventListener(result);
            result.getEvents(5000);
            assertTrue("Warn message expected in log file.",
                    tail.getLines().iterator().hasNext());
        } finally {
            tail.close();
        }

        if (!exceptions.isEmpty()) {
            fail(exceptions.get(0).toString());
        }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.Tail

Copyright © 2018 www.massapicom. 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.