Package org.apache.sling.replication.communication

Examples of org.apache.sling.replication.communication.ReplicationRequest


        String path = "/some/path";
        String nuggetsPath = "/var/nuggets";
        PersistingJcrEventReplicationTrigger persistingJcrEventReplicationTrigger = new PersistingJcrEventReplicationTrigger(
                repository, path, serviceName, nuggetsPath);
        Event event = mock(Event.class);
        ReplicationRequest replicationRequest = persistingJcrEventReplicationTrigger.processEvent(event);
        assertNull(replicationRequest);
    }
View Full Code Here


        Node eventNode = mock(Node.class);
        when(nuggetsNode.addNode(any(String.class))).thenReturn(eventNode);
        when(session.getNode(nuggetsPath)).thenReturn(nuggetsNode);
        Event event = mock(Event.class);
        when(event.getPath()).thenReturn("/some/path/generating/event");
        ReplicationRequest replicationRequest = persistingJcrEventReplicationTrigger.processEvent(event);
        assertNotNull(replicationRequest);
    }
View Full Code Here

        SlingRepository repository = mock(SlingRepository.class);
        String path = "/some/path";
        String serviceName = "serviceId";
        JcrEventReplicationTrigger jcrEventReplicationTrigger = new JcrEventReplicationTrigger(repository, path, serviceName);
        Event event = mock(Event.class);
        ReplicationRequest replicationRequest = jcrEventReplicationTrigger.processEvent(event);
        assertNull(replicationRequest);
    }
View Full Code Here

        String path = "/some/path";
        String serviceName = "serviceId";
        JcrEventReplicationTrigger jcrEventReplicationTrigger = new JcrEventReplicationTrigger(repository, path, serviceName);
        Event event = mock(Event.class);
        when(event.getPath()).thenReturn("/some/path/generating/event");
        ReplicationRequest replicationRequest = jcrEventReplicationTrigger.processEvent(event);
        assertNotNull(replicationRequest);
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.replication.communication.ReplicationRequest

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.