test_class.declarator: LOGGER = LoggerFactory.getLogger(AbstractSystemJobTest.class)
test_class.modifier: private static
test_class.original_string: private static Logger LOGGER = LoggerFactory.getLogger(AbstractSystemJobTest.class);
test_class.type: Logger
test_class.var_name: LOGGER
test_class.declarator: applicationContext
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private ApplicationContext applicationContext;
test_class.type: ApplicationContext
test_class.var_name: applicationContext
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/systemjobs/AbstractSystemJobTest.java
test_class.identifier: AbstractSystemJobTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testGetCronExpression() throws ParseException
      {
          // Build a list of system jobs to be scheduled.
          Map<String, AbstractSystemJob> systemJobs = applicationContext.getBeansOfType(AbstractSystemJob.class);
  
          // Validate that we located the expected number of system job.
          assertEquals(7, CollectionUtils.size(systemJobs));
  
          // Validate cron expression configured in the system for each system job.
          for (Map.Entry<String, AbstractSystemJob> entry : systemJobs.entrySet())
          {
              // Get the name and the system job implementation.
              String jobName = entry.getKey();
              AbstractSystemJob systemJob = entry.getValue();
  
              // Get the cron expression configured in the system for the job.
              String cronExpressionAsText = systemJob.getCronExpression();
              LOGGER.info(String.format("Testing cron expression \"%s\" specified for \"%s\" system job...", cronExpressionAsText, jobName));
  
              // Validate the cron expression.
              if (CronExpression.isValidExpression(cronExpressionAsText))
              {
                  CronExpression cronExpression = new CronExpression(cronExpressionAsText);
                  LOGGER.info(String.format("Next valid time for \"%s\" cron expression after now is \"%s\".", cronExpressionAsText,
                      cronExpression.getNextValidTimeAfter(new Date())));
              }
              else
              {
                  fail(String.format("Cron expression \"%s\" specified for \"%s\" system job is not valid.", cronExpressionAsText, jobName));
              }
          }
      }
test_case.class_method_signature: AbstractSystemJobTest.testGetCronExpression()
test_case.full_signature: @Test public void testGetCronExpression()
test_case.identifier: testGetCronExpression
test_case.invocations: getBeansOfType assertEquals size entrySet getKey getValue getCronExpression info format isValidExpression info format getNextValidTimeAfter fail format
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetCronExpression()
focal_class.declarator: SYSTEM_JOB_PARAMETERS = "parameters"
focal_class.modifier: public static final
focal_class.original_string: public static final String SYSTEM_JOB_PARAMETERS = "parameters";
focal_class.type: String
focal_class.var_name: SYSTEM_JOB_PARAMETERS
focal_class.declarator: CRON_TRIGGER_SUFFIX = "CronTrigger"
focal_class.modifier: public static final
focal_class.original_string: public static final String CRON_TRIGGER_SUFFIX = "CronTrigger";
focal_class.type: String
focal_class.var_name: CRON_TRIGGER_SUFFIX
focal_class.declarator: RUN_ONCE_TRIGGER_SUFFIX = "RunOnceTrigger"
focal_class.modifier: public static final
focal_class.original_string: public static final String RUN_ONCE_TRIGGER_SUFFIX = "RunOnceTrigger";
focal_class.type: String
focal_class.var_name: RUN_ONCE_TRIGGER_SUFFIX
focal_class.declarator: parameters
focal_class.modifier: protected
focal_class.original_string: protected Map<String, String> parameters;
focal_class.type: Map<String, String>
focal_class.var_name: parameters
focal_class.declarator: configurationHelper
focal_class.modifier: @Autowired
      protected
focal_class.original_string: @Autowired
      protected ConfigurationHelper configurationHelper;
focal_class.type: ConfigurationHelper
focal_class.var_name: configurationHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/systemjobs/AbstractSystemJob.java
focal_class.identifier: AbstractSystemJob
focal_class.class_method_signature: AbstractSystemJob.setParameters(Map<String, String> parameters)
focal_class.full_signature: public void setParameters(Map<String, String> parameters)
focal_class.identifier: setParameters
focal_class.modifiers: public
focal_class.parameters: (Map<String, String> parameters)
focal_class.return: void
focal_class.signature: void setParameters(Map<String, String> parameters)
focal_class.class_method_signature: AbstractSystemJob.validateParameters(List<Parameter> parameters)
focal_class.full_signature: public abstract void validateParameters(List<Parameter> parameters)
focal_class.identifier: validateParameters
focal_class.modifiers: public abstract
focal_class.parameters: (List<Parameter> parameters)
focal_class.return: void
focal_class.signature: void validateParameters(List<Parameter> parameters)
focal_class.class_method_signature: AbstractSystemJob.getCronExpression()
focal_class.full_signature: public abstract String getCronExpression()
focal_class.identifier: getCronExpression
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCronExpression()
focal_class.class_method_signature: AbstractSystemJob.getJobDataMap()
focal_class.full_signature: public abstract JobDataMap getJobDataMap()
focal_class.identifier: getJobDataMap
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: JobDataMap
focal_class.signature: JobDataMap getJobDataMap()
focal_class.class_method_signature: AbstractSystemJob.getJobDataMap(List<Parameter> parameters)
focal_class.full_signature: public JobDataMap getJobDataMap(List<Parameter> parameters)
focal_class.identifier: getJobDataMap
focal_class.modifiers: public
focal_class.parameters: (List<Parameter> parameters)
focal_class.return: JobDataMap
focal_class.signature: JobDataMap getJobDataMap(List<Parameter> parameters)
focal_class.class_method_signature: AbstractSystemJob.getJobDataMapWithoutParameters()
focal_class.full_signature: protected JobDataMap getJobDataMapWithoutParameters()
focal_class.identifier: getJobDataMapWithoutParameters
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: JobDataMap
focal_class.signature: JobDataMap getJobDataMapWithoutParameters()
focal_class.class_method_signature: AbstractSystemJob.getJobDataMap(ConfigurationValue... configurationValues)
focal_class.full_signature: protected JobDataMap getJobDataMap(ConfigurationValue... configurationValues)
focal_class.identifier: getJobDataMap
focal_class.modifiers: protected
focal_class.parameters: (ConfigurationValue... configurationValues)
focal_class.return: JobDataMap
focal_class.signature: JobDataMap getJobDataMap(ConfigurationValue... configurationValues)
focal_class.superclass: extends QuartzJobBean
focal_method.body: public abstract String getCronExpression();
focal_method.class_method_signature: AbstractSystemJob.getCronExpression()
focal_method.full_signature: public abstract String getCronExpression()
focal_method.identifier: getCronExpression
focal_method.modifiers: public abstract
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getCronExpression()