@Test public void performShouldRunTheImplementedStrategyJob() { testObj.perform(cleanUpProcessedOrderModificationsCronJobModelMock); verify(worldpayOrderModificationCleanUpStrategy).doCleanUp(anyInt()); }
@Override public PerformResult perform(final CleanUpProcessedOrderModificationsCronJobModel cleanUpOrderModificationsCronJobModel) { getWorldpayOrderModificationCleanUpStrategy().doCleanUp(cleanUpOrderModificationsCronJobModel.getDaysToWaitBeforeDeletion()); return new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED); }
OrderModificationCleanUpJobPerformable extends AbstractJobPerformable<CleanUpProcessedOrderModificationsCronJobModel> { @Override public PerformResult perform(final CleanUpProcessedOrderModificationsCronJobModel cleanUpOrderModificationsCronJobModel) { getWorldpayOrderModificationCleanUpStrategy().doCleanUp(cleanUpOrderModificationsCronJobModel.getDaysToWaitBeforeDeletion()); return new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED); } }
OrderModificationCleanUpJobPerformable extends AbstractJobPerformable<CleanUpProcessedOrderModificationsCronJobModel> { @Override public PerformResult perform(final CleanUpProcessedOrderModificationsCronJobModel cleanUpOrderModificationsCronJobModel) { getWorldpayOrderModificationCleanUpStrategy().doCleanUp(cleanUpOrderModificationsCronJobModel.getDaysToWaitBeforeDeletion()); return new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED); }  }
OrderModificationCleanUpJobPerformable extends AbstractJobPerformable<CleanUpProcessedOrderModificationsCronJobModel> { @Override public PerformResult perform(final CleanUpProcessedOrderModificationsCronJobModel cleanUpOrderModificationsCronJobModel) { getWorldpayOrderModificationCleanUpStrategy().doCleanUp(cleanUpOrderModificationsCronJobModel.getDaysToWaitBeforeDeletion()); return new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED); }  @Override PerformResult perform(final CleanUpProcessedOrderModificationsCronJobModel cleanUpOrderModificationsCronJobModel); WorldpayOrderModificationCleanUpStrategy getWorldpayOrderModificationCleanUpStrategy(); @Required void setWorldpayOrderModificationCleanUpStrategy(WorldpayOrderModificationCleanUpStrategy worldpayOrderModificationCleanUpStrategy); }
OrderModificationCleanUpJobPerformable extends AbstractJobPerformable<CleanUpProcessedOrderModificationsCronJobModel> { @Override public PerformResult perform(final CleanUpProcessedOrderModificationsCronJobModel cleanUpOrderModificationsCronJobModel) { getWorldpayOrderModificationCleanUpStrategy().doCleanUp(cleanUpOrderModificationsCronJobModel.getDaysToWaitBeforeDeletion()); return new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED); }  @Override PerformResult perform(final CleanUpProcessedOrderModificationsCronJobModel cleanUpOrderModificationsCronJobModel); WorldpayOrderModificationCleanUpStrategy getWorldpayOrderModificationCleanUpStrategy(); @Required void setWorldpayOrderModificationCleanUpStrategy(WorldpayOrderModificationCleanUpStrategy worldpayOrderModificationCleanUpStrategy);  }