use of org.apache.sling.distribution.trigger.DistributionRequestHandler in project sling by apache.
the class ScheduledDistributionTriggerTest method testUnregister.
@Test
public void testUnregister() throws Exception {
String path = "/path/to/somewhere";
int interval = 10;
Scheduler scheduler = mock(Scheduler.class);
ScheduledDistributionTrigger scheduleddistributionTrigger = new ScheduledDistributionTrigger(action.name(), path, interval, null, scheduler, mock(ResourceResolverFactory.class));
DistributionRequestHandler handlerId = mock(DistributionRequestHandler.class);
scheduleddistributionTrigger.unregister(handlerId);
}
Aggregations