test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/NotificationRegistrationDaoHelperTest.java
test_class.identifier: NotificationRegistrationDaoHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testGetNotificationRegistrationAssertThrowWhenEntityNotExist()
      {
          NotificationRegistrationKey businessObjectDataNotificationRegistrationKey = new NotificationRegistrationKey(NAMESPACE, BDEF_NAME);
          notificationRegistrationDaoTestHelper.createBusinessObjectDataNotificationRegistrationEntity(businessObjectDataNotificationRegistrationKey,
              NotificationEventTypeEntity.EventTypesBdata.BUS_OBJCT_DATA_STTS_CHG.name(), NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE,
              FORMAT_VERSION, STORAGE_NAME, BDATA_STATUS, BDATA_STATUS, notificationRegistrationDaoTestHelper.getTestJobActions(),
              NotificationRegistrationStatusEntity.ENABLED);
          try
          {
              notificationRegistrationDaoHelper.getNotificationRegistration(NAMESPACE, "DOES_NOT_EXIST");
              fail();
          }
          catch (Exception e)
          {
              assertEquals(ObjectNotFoundException.class, e.getClass());
              assertEquals("The notification registration with namespace \"" + NAMESPACE + "\" and name \"DOES_NOT_EXIST\" was not found.", e.getMessage());
          }
      }
test_case.class_method_signature: NotificationRegistrationDaoHelperTest.testGetNotificationRegistrationAssertThrowWhenEntityNotExist()
test_case.full_signature: @Test public void testGetNotificationRegistrationAssertThrowWhenEntityNotExist()
test_case.identifier: testGetNotificationRegistrationAssertThrowWhenEntityNotExist
test_case.invocations: createBusinessObjectDataNotificationRegistrationEntity name getTestJobActions getNotificationRegistration fail assertEquals getClass assertEquals getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetNotificationRegistrationAssertThrowWhenEntityNotExist()
focal_class.declarator: notificationRegistrationDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private NotificationRegistrationDao notificationRegistrationDao;
focal_class.type: NotificationRegistrationDao
focal_class.var_name: notificationRegistrationDao
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/NotificationRegistrationDaoHelper.java
focal_class.identifier: NotificationRegistrationDaoHelper
focal_class.class_method_signature: NotificationRegistrationDaoHelper.getNotificationRegistration(String namespace, String name)
focal_class.full_signature: public NotificationRegistrationEntity getNotificationRegistration(String namespace, String name)
focal_class.identifier: getNotificationRegistration
focal_class.modifiers: public
focal_class.parameters: (String namespace, String name)
focal_class.return: NotificationRegistrationEntity
focal_class.signature: NotificationRegistrationEntity getNotificationRegistration(String namespace, String name)
focal_method.body: public NotificationRegistrationEntity getNotificationRegistration(String namespace, String name)
      {
          NotificationRegistrationEntity notificationRegistration = notificationRegistrationDao.getNotificationRegistration(namespace, name);
          if (notificationRegistration == null)
          {
              throw new ObjectNotFoundException("The notification registration with namespace \"" + namespace + "\" and name \"" + name + "\" was not found.");
          }
          return notificationRegistration;
      }
focal_method.class_method_signature: NotificationRegistrationDaoHelper.getNotificationRegistration(String namespace, String name)
focal_method.full_signature: public NotificationRegistrationEntity getNotificationRegistration(String namespace, String name)
focal_method.identifier: getNotificationRegistration
focal_method.invocations: getNotificationRegistration
focal_method.modifiers: public
focal_method.parameters: (String namespace, String name)
focal_method.return: NotificationRegistrationEntity
focal_method.signature: NotificationRegistrationEntity getNotificationRegistration(String namespace, String name)