Package org.apache.jackrabbit.core.cluster.SimpleEventListener

Examples of org.apache.jackrabbit.core.cluster.SimpleEventListener.NamespaceEvent


    /**
     * Test producing and consuming a namespace registration.
     * @throws Exception
     */
    public void testNamespaceRegistration() throws Exception {
        NamespaceEvent event = new NamespaceEvent(null, "test", "http://www.test.com");

        master.remapped(event.getOldPrefix(), event.getNewPrefix(), event.getUri());

        SimpleEventListener listener = new SimpleEventListener();
        slave.setListener((NamespaceEventListener) listener);
        slave.sync();

View Full Code Here


    /**
     * Test producing and consuming a namespace unregistration.
     * @throws Exception
     */
    public void testNamespaceUnregistration() throws Exception {
        NamespaceEvent event = new NamespaceEvent("test", null, null);

        master.remapped(event.getOldPrefix(), event.getNewPrefix(), event.getUri());

        SimpleEventListener listener = new SimpleEventListener();
        slave.setListener((NamespaceEventListener) listener);
        slave.sync();

View Full Code Here

    /**
     * Test producing and consuming a namespace registration.
     * @throws Exception
     */
    public void testNamespaceRegistration() throws Exception {
        NamespaceEvent event = new NamespaceEvent(null, "test", "http://www.test.com");

        master.remapped(event.getOldPrefix(), event.getNewPrefix(), event.getUri());

        SimpleEventListener listener = new SimpleEventListener();
        slave.setListener((NamespaceEventListener) listener);
        slave.sync();

View Full Code Here

    /**
     * Test producing and consuming a namespace unregistration.
     * @throws Exception
     */
    public void testNamespaceUnregistration() throws Exception {
        NamespaceEvent event = new NamespaceEvent("test", null, null);

        master.remapped(event.getOldPrefix(), event.getNewPrefix(), event.getUri());

        SimpleEventListener listener = new SimpleEventListener();
        slave.setListener((NamespaceEventListener) listener);
        slave.sync();

View Full Code Here

    /**
     * Test producing and consuming a namespace registration.
     * @throws Exception
     */
    public void testNamespaceRegistration() throws Exception {
        NamespaceEvent event = new NamespaceEvent(null, "test", "http://www.test.com");

        master.remapped(event.getOldPrefix(), event.getNewPrefix(), event.getUri());

        SimpleEventListener listener = new SimpleEventListener();
        slave.setListener((NamespaceEventListener) listener);
        slave.sync();

View Full Code Here

    /**
     * Test producing and consuming a namespace unregistration.
     * @throws Exception
     */
    public void testNamespaceUnregistration() throws Exception {
        NamespaceEvent event = new NamespaceEvent("test", null, null);

        master.remapped(event.getOldPrefix(), event.getNewPrefix(), event.getUri());

        SimpleEventListener listener = new SimpleEventListener();
        slave.setListener((NamespaceEventListener) listener);
        slave.sync();

View Full Code Here

    /**
     * Test producing and consuming a namespace registration.
     * @throws Exception
     */
    public void testNamespaceRegistration() throws Exception {
        NamespaceEvent event = new NamespaceEvent(null, "test", "http://www.test.com");

        master.remapped(event.getOldPrefix(), event.getNewPrefix(), event.getUri());

        SimpleEventListener listener = new SimpleEventListener();
        slave.setListener((NamespaceEventListener) listener);
        slave.sync();

View Full Code Here

    /**
     * Test producing and consuming a namespace unregistration.
     * @throws Exception
     */
    public void testNamespaceUnregistration() throws Exception {
        NamespaceEvent event = new NamespaceEvent("test", null, null);

        master.remapped(event.getOldPrefix(), event.getNewPrefix(), event.getUri());

        SimpleEventListener listener = new SimpleEventListener();
        slave.setListener((NamespaceEventListener) listener);
        slave.sync();

View Full Code Here

    /**
     * Test producing and consuming a namespace registration.
     * @throws Exception
     */
    public void testNamespaceRegistration() throws Exception {
        NamespaceEvent event = new NamespaceEvent(null, "test", "http://www.test.com");

        master.remapped(event.getOldPrefix(), event.getNewPrefix(), event.getUri());

        SimpleEventListener listener = new SimpleEventListener();
        slave.setListener((NamespaceEventListener) listener);
        slave.sync();

View Full Code Here

    /**
     * Test producing and consuming a namespace unregistration.
     * @throws Exception
     */
    public void testNamespaceUnregistration() throws Exception {
        NamespaceEvent event = new NamespaceEvent("test", null, null);

        master.remapped(event.getOldPrefix(), event.getNewPrefix(), event.getUri());

        SimpleEventListener listener = new SimpleEventListener();
        slave.setListener((NamespaceEventListener) listener);
        slave.sync();

View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.cluster.SimpleEventListener.NamespaceEvent

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.