@Test public void afterAll( @Mock Map<String, Object> jobMap, @Mock SchedulerFactoryBean schedulerFactoryBean, @Mock Scheduler scheduler) throws JobExecutionException, SchedulerException { ReflectionTestUtils.setField(ldapMembershipPullActions, "scheduler", schedulerFactoryBean); when(schedulerFactoryBean.getScheduler()).thenReturn(scheduler); ldapMembershipPullActions.afterAll(profile); verify(scheduler).scheduleJob(any(), any()); }
@Override public void afterAll(final ProvisioningProfile<?, ?> profile) throws JobExecutionException { Map<String, Object> jobMap = new HashMap<>(); jobMap.put(SetUMembershipsJob.MEMBERSHIPS_BEFORE_KEY, membershipsBefore); jobMap.put(SetUMembershipsJob.MEMBERSHIPS_AFTER_KEY, membershipsAfter); jobMap.put(JobManager.EXECUTOR_KEY, profile.getExecutor()); jobMap.put( SetUMembershipsJob.CONTEXT, "PullTask " + profile.getTask().getKey() + " '" + profile.getTask().getName() + "'"); schedule(SetUMembershipsJob.class, jobMap); }
LDAPMembershipPullActions extends SchedulingPullActions { @Override public void afterAll(final ProvisioningProfile<?, ?> profile) throws JobExecutionException { Map<String, Object> jobMap = new HashMap<>(); jobMap.put(SetUMembershipsJob.MEMBERSHIPS_BEFORE_KEY, membershipsBefore); jobMap.put(SetUMembershipsJob.MEMBERSHIPS_AFTER_KEY, membershipsAfter); jobMap.put(JobManager.EXECUTOR_KEY, profile.getExecutor()); jobMap.put( SetUMembershipsJob.CONTEXT, "PullTask " + profile.getTask().getKey() + " '" + profile.getTask().getName() + "'"); schedule(SetUMembershipsJob.class, jobMap); } }
LDAPMembershipPullActions extends SchedulingPullActions { @Override public void afterAll(final ProvisioningProfile<?, ?> profile) throws JobExecutionException { Map<String, Object> jobMap = new HashMap<>(); jobMap.put(SetUMembershipsJob.MEMBERSHIPS_BEFORE_KEY, membershipsBefore); jobMap.put(SetUMembershipsJob.MEMBERSHIPS_AFTER_KEY, membershipsAfter); jobMap.put(JobManager.EXECUTOR_KEY, profile.getExecutor()); jobMap.put( SetUMembershipsJob.CONTEXT, "PullTask " + profile.getTask().getKey() + " '" + profile.getTask().getName() + "'"); schedule(SetUMembershipsJob.class, jobMap); }  }
LDAPMembershipPullActions extends SchedulingPullActions { @Override public void afterAll(final ProvisioningProfile<?, ?> profile) throws JobExecutionException { Map<String, Object> jobMap = new HashMap<>(); jobMap.put(SetUMembershipsJob.MEMBERSHIPS_BEFORE_KEY, membershipsBefore); jobMap.put(SetUMembershipsJob.MEMBERSHIPS_AFTER_KEY, membershipsAfter); jobMap.put(JobManager.EXECUTOR_KEY, profile.getExecutor()); jobMap.put( SetUMembershipsJob.CONTEXT, "PullTask " + profile.getTask().getKey() + " '" + profile.getTask().getName() + "'"); schedule(SetUMembershipsJob.class, jobMap); }  @Transactional(readOnly = true) @Override void beforeUpdate(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entity,
            final AnyUR anyUR); @Override void after(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entity,
            final ProvisioningReport result); @Override void afterAll(final ProvisioningProfile<?, ?> profile); }
LDAPMembershipPullActions extends SchedulingPullActions { @Override public void afterAll(final ProvisioningProfile<?, ?> profile) throws JobExecutionException { Map<String, Object> jobMap = new HashMap<>(); jobMap.put(SetUMembershipsJob.MEMBERSHIPS_BEFORE_KEY, membershipsBefore); jobMap.put(SetUMembershipsJob.MEMBERSHIPS_AFTER_KEY, membershipsAfter); jobMap.put(JobManager.EXECUTOR_KEY, profile.getExecutor()); jobMap.put( SetUMembershipsJob.CONTEXT, "PullTask " + profile.getTask().getKey() + " '" + profile.getTask().getName() + "'"); schedule(SetUMembershipsJob.class, jobMap); }  @Transactional(readOnly = true) @Override void beforeUpdate(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entity,
            final AnyUR anyUR); @Override void after(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entity,
            final ProvisioningReport result); @Override void afterAll(final ProvisioningProfile<?, ?> profile);  }