@Test public void beforeUpdate() throws JobExecutionException { userUR = new UserUR.Builder(null). password(new PasswordPatch.Builder().value("an0therTestP4ss").build()). build(); dBPasswordPullActions.beforeUpdate(profile, syncDelta, userTO, userUR); userUR = new UserUR(); userUR.setPassword(new PasswordPatch.Builder().value("an0therTestP4ss").build()); dBPasswordPullActions.beforeUpdate(profile, syncDelta, userTO, userUR); assertEquals(cipher, ReflectionTestUtils.getField(dBPasswordPullActions, "cipher")); assertEquals(encodedPassword, ReflectionTestUtils.getField(dBPasswordPullActions, "encodedPassword")); }
@Transactional(readOnly = true) @Override public void beforeUpdate( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final EntityTO entityTO, final AnyUR anyUR) throws JobExecutionException { if (anyUR instanceof UserUR) { PasswordPatch modPassword = ((UserUR) anyUR).getPassword(); parseEncodedPassword(Optional.ofNullable(modPassword) .map(AbstractPatchItem::getValue).orElse(null), profile.getConnector()); } }
DBPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeUpdate( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final EntityTO entityTO, final AnyUR anyUR) throws JobExecutionException { if (anyUR instanceof UserUR) { PasswordPatch modPassword = ((UserUR) anyUR).getPassword(); parseEncodedPassword(Optional.ofNullable(modPassword) .map(AbstractPatchItem::getValue).orElse(null), profile.getConnector()); } } }
DBPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeUpdate( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final EntityTO entityTO, final AnyUR anyUR) throws JobExecutionException { if (anyUR instanceof UserUR) { PasswordPatch modPassword = ((UserUR) anyUR).getPassword(); parseEncodedPassword(Optional.ofNullable(modPassword) .map(AbstractPatchItem::getValue).orElse(null), profile.getConnector()); } }  }
DBPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeUpdate( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final EntityTO entityTO, final AnyUR anyUR) throws JobExecutionException { if (anyUR instanceof UserUR) { PasswordPatch modPassword = ((UserUR) anyUR).getPassword(); parseEncodedPassword(Optional.ofNullable(modPassword) .map(AbstractPatchItem::getValue).orElse(null), profile.getConnector()); } }  @Transactional(readOnly = true) @Override void beforeProvision(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final AnyCR anyCR); @Transactional(readOnly = true) @Override void beforeUpdate(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entityTO,
            final AnyUR anyUR); @Transactional @Override void after(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO any,
            final ProvisioningReport result); }
DBPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeUpdate( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final EntityTO entityTO, final AnyUR anyUR) throws JobExecutionException { if (anyUR instanceof UserUR) { PasswordPatch modPassword = ((UserUR) anyUR).getPassword(); parseEncodedPassword(Optional.ofNullable(modPassword) .map(AbstractPatchItem::getValue).orElse(null), profile.getConnector()); } }  @Transactional(readOnly = true) @Override void beforeProvision(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final AnyCR anyCR); @Transactional(readOnly = true) @Override void beforeUpdate(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entityTO,
            final AnyUR anyUR); @Transactional @Override void after(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO any,
            final ProvisioningReport result);  }