test_class.declarator: notificationActionFactory
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      NotificationActionFactory notificationActionFactory;
test_class.type: NotificationActionFactory
test_class.var_name: notificationActionFactory
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/NotificationActionFactoryTest.java
test_class.identifier: NotificationActionFactoryTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testCreateBusinessObjectDataNotificationNoHandler() throws Exception
      {
          try
          {
              notificationActionFactory.getNotificationActionHandler("NO_EXIST", "NO_EXIST");
              fail("Should throw an IllegalArgumentException as no supported handler if defined for this notification event type.");
          }
          catch (IllegalArgumentException ex)
          {
              assertTrue(ex.getMessage().startsWith("No supported notification handler found for notificationType"));
          }
      }
test_case.class_method_signature: NotificationActionFactoryTest.testCreateBusinessObjectDataNotificationNoHandler()
test_case.full_signature: @Test public void testCreateBusinessObjectDataNotificationNoHandler()
test_case.identifier: testCreateBusinessObjectDataNotificationNoHandler
test_case.invocations: getNotificationActionHandler fail assertTrue startsWith getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateBusinessObjectDataNotificationNoHandler()
focal_class.declarator: applicationContext
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ApplicationContext applicationContext;
focal_class.type: ApplicationContext
focal_class.var_name: applicationContext
focal_class.declarator: notificationActionHandlerServiceMap
focal_class.modifier: private
focal_class.original_string: private Map<String, NotificationActionService> notificationActionHandlerServiceMap;
focal_class.type: Map<String, NotificationActionService>
focal_class.var_name: notificationActionHandlerServiceMap
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/NotificationActionFactory.java
focal_class.identifier: NotificationActionFactory
focal_class.interfaces: implements InitializingBean
focal_class.class_method_signature: NotificationActionFactory.afterPropertiesSet()
focal_class.full_signature: @Override public void afterPropertiesSet()
focal_class.identifier: afterPropertiesSet
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void afterPropertiesSet()
focal_class.class_method_signature: NotificationActionFactory.getNotificationActionHandler(String notificationType, String actionType)
focal_class.full_signature: @SuppressFBWarnings(value = "UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR", justification = "This is a false positive. afterPropertiesSet is called before this method which will ensure notificationActionHandlerServiceMap is " + "not null.") public NotificationActionService getNotificationActionHandler(String notificationType, String actionType)
focal_class.identifier: getNotificationActionHandler
focal_class.modifiers: @SuppressFBWarnings(value = "UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR", justification = "This is a false positive. afterPropertiesSet is called before this method which will ensure notificationActionHandlerServiceMap is " + "not null.") public
focal_class.parameters: (String notificationType, String actionType)
focal_class.return: NotificationActionService
focal_class.signature: NotificationActionService getNotificationActionHandler(String notificationType, String actionType)
focal_method.body: @SuppressFBWarnings(value = "UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR",
          justification = "This is a false positive. afterPropertiesSet is called before this method which will ensure notificationActionHandlerServiceMap is " +
              "not null.")
      public NotificationActionService getNotificationActionHandler(String notificationType, String actionType)
      {
          NotificationActionService actionHandlerService = notificationActionHandlerServiceMap.get(notificationType + "|" + actionType);
          if (actionHandlerService == null)
          {
              throw new IllegalArgumentException(
                  "No supported notification handler found for notificationType \"" + notificationType + "\" and actionType: \"" + actionType + "\".");
          }
          return actionHandlerService;
      }
focal_method.class_method_signature: NotificationActionFactory.getNotificationActionHandler(String notificationType, String actionType)
focal_method.full_signature: @SuppressFBWarnings(value = "UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR", justification = "This is a false positive. afterPropertiesSet is called before this method which will ensure notificationActionHandlerServiceMap is " + "not null.") public NotificationActionService getNotificationActionHandler(String notificationType, String actionType)
focal_method.identifier: getNotificationActionHandler
focal_method.invocations: get
focal_method.modifiers: @SuppressFBWarnings(value = "UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR", justification = "This is a false positive. afterPropertiesSet is called before this method which will ensure notificationActionHandlerServiceMap is " + "not null.") public
focal_method.parameters: (String notificationType, String actionType)
focal_method.return: NotificationActionService
focal_method.signature: NotificationActionService getNotificationActionHandler(String notificationType, String actionType)