test_class.declarator: herdJmsMessageListener
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      HerdJmsMessageListener herdJmsMessageListener;
test_class.type: HerdJmsMessageListener
test_class.var_name: herdJmsMessageListener
test_class.declarator: jsonHelper
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      JsonHelper jsonHelper;
test_class.type: JsonHelper
test_class.var_name: jsonHelper
test_class.declarator: uploadDownloadService
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      UploadDownloadService uploadDownloadService;
test_class.type: UploadDownloadService
test_class.var_name: uploadDownloadService
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/HerdJmsMessageListenerTest.java
test_class.identifier: HerdJmsMessageListenerTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testS3MessageWrongMessage() throws Exception
      {
          setLogLevel(UploadDownloadServiceImpl.class, LogLevel.OFF);
          setLogLevel(HerdJmsMessageListener.class, LogLevel.OFF);
  
          herdJmsMessageListener.processMessage("WRONG_MESSAGE", null);
      }
test_case.class_method_signature: HerdJmsMessageListenerTest.testS3MessageWrongMessage()
test_case.full_signature: @Test public void testS3MessageWrongMessage()
test_case.identifier: testS3MessageWrongMessage
test_case.invocations: setLogLevel setLogLevel processMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testS3MessageWrongMessage()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(HerdJmsMessageListener.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(HerdJmsMessageListener.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: configurationHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ConfigurationHelper configurationHelper;
focal_class.type: ConfigurationHelper
focal_class.var_name: configurationHelper
focal_class.declarator: jsonHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private JsonHelper jsonHelper;
focal_class.type: JsonHelper
focal_class.var_name: jsonHelper
focal_class.declarator: sqsNotificationEventService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private MessageNotificationEventService sqsNotificationEventService;
focal_class.type: MessageNotificationEventService
focal_class.var_name: sqsNotificationEventService
focal_class.declarator: uploadDownloadService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private UploadDownloadService uploadDownloadService;
focal_class.type: UploadDownloadService
focal_class.var_name: uploadDownloadService
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/HerdJmsMessageListener.java
focal_class.identifier: HerdJmsMessageListener
focal_class.class_method_signature: HerdJmsMessageListener.controlHerdJmsMessageListener()
focal_class.full_signature: @Scheduled(fixedDelay = 60000) public void controlHerdJmsMessageListener()
focal_class.identifier: controlHerdJmsMessageListener
focal_class.modifiers: @Scheduled(fixedDelay = 60000) public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void controlHerdJmsMessageListener()
focal_class.class_method_signature: HerdJmsMessageListener.processMessage(String payload, @Headers Map<Object, Object> allHeaders)
focal_class.full_signature: @JmsListener(id = HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING, containerFactory = "jmsListenerContainerFactory", destination = HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING) public void processMessage(String payload, @Headers Map<Object, Object> allHeaders)
focal_class.identifier: processMessage
focal_class.modifiers: @JmsListener(id = HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING, containerFactory = "jmsListenerContainerFactory", destination = HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING) public
focal_class.parameters: (String payload, @Headers Map<Object, Object> allHeaders)
focal_class.return: void
focal_class.signature: void processMessage(String payload, @Headers Map<Object, Object> allHeaders)
focal_class.class_method_signature: HerdJmsMessageListener.processS3Notification(String payload)
focal_class.full_signature: private boolean processS3Notification(String payload)
focal_class.identifier: processS3Notification
focal_class.modifiers: private
focal_class.parameters: (String payload)
focal_class.return: boolean
focal_class.signature: boolean processS3Notification(String payload)
focal_method.body: @JmsListener(id = HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING,
          containerFactory = "jmsListenerContainerFactory", destination = HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING)
      public void processMessage(String payload, @Headers Map<Object, Object> allHeaders)
      {
          LOGGER.info("JMS message received from the queue. jmsQueueName=\"{}\" jmsMessageHeaders=\"{}\" jmsMessagePayload={}",
              HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING, allHeaders, payload);
  
          // Process the message as S3 notification.
          boolean messageProcessed = processS3Notification(payload);
  
          if (!messageProcessed)
          {
              // The message was not processed, log the error.
              LOGGER.error("Failed to process message from the JMS queue. jmsQueueName=\"{}\" jmsMessagePayload={}",
                  HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING, payload);
          }
      }
focal_method.class_method_signature: HerdJmsMessageListener.processMessage(String payload, @Headers Map<Object, Object> allHeaders)
focal_method.full_signature: @JmsListener(id = HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING, containerFactory = "jmsListenerContainerFactory", destination = HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING) public void processMessage(String payload, @Headers Map<Object, Object> allHeaders)
focal_method.identifier: processMessage
focal_method.invocations: info processS3Notification error
focal_method.modifiers: @JmsListener(id = HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING, containerFactory = "jmsListenerContainerFactory", destination = HerdJmsDestinationResolver.SQS_DESTINATION_HERD_INCOMING) public
focal_method.parameters: (String payload, @Headers Map<Object, Object> allHeaders)
focal_method.return: void
focal_method.signature: void processMessage(String payload, @Headers Map<Object, Object> allHeaders)