test_class.declarator: herdApiClientOperations
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private HerdApiClientOperations herdApiClientOperations;
test_class.type: HerdApiClientOperations
test_class.var_name: herdApiClientOperations
test_class.declarator: propertiesHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private PropertiesHelper propertiesHelper;
test_class.type: PropertiesHelper
test_class.var_name: propertiesHelper
test_class.file: herd-code/herd-tools/herd-access-validator/src/test/java/org/finra/herd/tools/access/validator/HerdApiClientOperationsTest.java
test_class.identifier: HerdApiClientOperationsTest
test_case.body: @Test
      public void testMapJsontoBdataKey() throws Exception
      {
          String fileName = "sqsMessage.txt";
          String expectedNamespace = "DMFormatNamespace1";
  
          Path path = Paths.get(getClass().getClassLoader().getResource(fileName).toURI());
  
          Stream<String> lines = Files.lines(path);
          String messageBody = lines.collect(Collectors.joining("\n")).trim();
          lines.close();
  
          BusinessObjectDataKey bdataKey = herdApiClientOperations.mapJsontoBdataKey(messageBody).getBusinessObjectDataKey();
  
          Assert.assertEquals("Did not get the correct namespace", expectedNamespace, bdataKey.getNamespace());
      }
test_case.class_method_signature: HerdApiClientOperationsTest.testMapJsontoBdataKey()
test_case.full_signature: @Test public void testMapJsontoBdataKey()
test_case.identifier: testMapJsontoBdataKey
test_case.invocations: get toURI getResource getClassLoader getClass lines trim collect joining close getBusinessObjectDataKey mapJsontoBdataKey assertEquals getNamespace
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMapJsontoBdataKey()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(HerdApiClientOperations.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(HerdApiClientOperations.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: SEARCH_KEYWORD_1 = "businessObjectDataKey"
focal_class.modifier: private static final
focal_class.original_string: private static final String SEARCH_KEYWORD_1 = "businessObjectDataKey";
focal_class.type: String
focal_class.var_name: SEARCH_KEYWORD_1
focal_class.declarator: SEARCH_KEYWORD_2 = "BUS_OBJCT_DATA_STTS_CHG"
focal_class.modifier: private static final
focal_class.original_string: private static final String SEARCH_KEYWORD_2 = "BUS_OBJCT_DATA_STTS_CHG";
focal_class.type: String
focal_class.var_name: SEARCH_KEYWORD_2
focal_class.declarator: JSON_KEY = "Message"
focal_class.modifier: private static final
focal_class.original_string: private static final String JSON_KEY = "Message";
focal_class.type: String
focal_class.var_name: JSON_KEY
focal_class.declarator: MAX_NUM_MESSAGES = 10
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_NUM_MESSAGES = 10;
focal_class.type: int
focal_class.var_name: MAX_NUM_MESSAGES
focal_class.declarator: WAIT_TIME_SECS = 1
focal_class.modifier: private static final
focal_class.original_string: private static final int WAIT_TIME_SECS = 1;
focal_class.type: int
focal_class.var_name: WAIT_TIME_SECS
focal_class.declarator: VISIBILITY_TIMEOUT_SECS = 0
focal_class.modifier: private static final
focal_class.original_string: private static final int VISIBILITY_TIMEOUT_SECS = 0;
focal_class.type: int
focal_class.var_name: VISIBILITY_TIMEOUT_SECS
focal_class.file: herd-code/herd-tools/herd-access-validator/src/main/java/org/finra/herd/tools/access/validator/HerdApiClientOperations.java
focal_class.identifier: HerdApiClientOperations
focal_class.class_method_signature: HerdApiClientOperations.applicationGetBuildInfo(ApplicationApi applicationApi)
focal_class.full_signature:  BuildInformation applicationGetBuildInfo(ApplicationApi applicationApi)
focal_class.identifier: applicationGetBuildInfo
focal_class.parameters: (ApplicationApi applicationApi)
focal_class.return: BuildInformation
focal_class.signature: BuildInformation applicationGetBuildInfo(ApplicationApi applicationApi)
focal_class.class_method_signature: HerdApiClientOperations.businessObjectDataGetBusinessObjectData(BusinessObjectDataApi businessObjectDataApi, String namespace,
          String businessObjectDefinitionName, String businessObjectFormatUsage, String businessObjectFormatFileType, String partitionKey, String partitionValue,
          String subPartitionValues, Integer businessObjectFormatVersion, Integer businessObjectDataVersion, String businessObjectDataStatus,
          Boolean includeBusinessObjectDataStatusHistory, Boolean includeStorageUnitStatusHistory, Boolean excludeBusinessObjectDataStorageFiles)
focal_class.full_signature:  BusinessObjectData businessObjectDataGetBusinessObjectData(BusinessObjectDataApi businessObjectDataApi, String namespace,
          String businessObjectDefinitionName, String businessObjectFormatUsage, String businessObjectFormatFileType, String partitionKey, String partitionValue,
          String subPartitionValues, Integer businessObjectFormatVersion, Integer businessObjectDataVersion, String businessObjectDataStatus,
          Boolean includeBusinessObjectDataStatusHistory, Boolean includeStorageUnitStatusHistory, Boolean excludeBusinessObjectDataStorageFiles)
focal_class.identifier: businessObjectDataGetBusinessObjectData
focal_class.parameters: (BusinessObjectDataApi businessObjectDataApi, String namespace,
          String businessObjectDefinitionName, String businessObjectFormatUsage, String businessObjectFormatFileType, String partitionKey, String partitionValue,
          String subPartitionValues, Integer businessObjectFormatVersion, Integer businessObjectDataVersion, String businessObjectDataStatus,
          Boolean includeBusinessObjectDataStatusHistory, Boolean includeStorageUnitStatusHistory, Boolean excludeBusinessObjectDataStorageFiles)
focal_class.return: BusinessObjectData
focal_class.signature: BusinessObjectData businessObjectDataGetBusinessObjectData(BusinessObjectDataApi businessObjectDataApi, String namespace,
          String businessObjectDefinitionName, String businessObjectFormatUsage, String businessObjectFormatFileType, String partitionKey, String partitionValue,
          String subPartitionValues, Integer businessObjectFormatVersion, Integer businessObjectDataVersion, String businessObjectDataStatus,
          Boolean includeBusinessObjectDataStatusHistory, Boolean includeStorageUnitStatusHistory, Boolean excludeBusinessObjectDataStorageFiles)
focal_class.class_method_signature: HerdApiClientOperations.getBdataKeySqs(AmazonSQS client, String queueUrl)
focal_class.full_signature: @Retryable(value = ApiException.class, backoff = @Backoff(delay = 2000, multiplier = 2)) BusinessObjectDataKey getBdataKeySqs(AmazonSQS client, String queueUrl)
focal_class.identifier: getBdataKeySqs
focal_class.modifiers: @Retryable(value = ApiException.class, backoff = @Backoff(delay = 2000, multiplier = 2))
focal_class.parameters: (AmazonSQS client, String queueUrl)
focal_class.return: BusinessObjectDataKey
focal_class.signature: BusinessObjectDataKey getBdataKeySqs(AmazonSQS client, String queueUrl)
focal_class.class_method_signature: HerdApiClientOperations.mapJsontoBdataKey(String messageBody)
focal_class.full_signature:  JsonSqsMessageBody mapJsontoBdataKey(String messageBody)
focal_class.identifier: mapJsontoBdataKey
focal_class.parameters: (String messageBody)
focal_class.return: JsonSqsMessageBody
focal_class.signature: JsonSqsMessageBody mapJsontoBdataKey(String messageBody)
focal_class.class_method_signature: HerdApiClientOperations.checkPropertiesFile(PropertiesHelper propertiesHelper, Boolean messageFlag)
focal_class.full_signature:  void checkPropertiesFile(PropertiesHelper propertiesHelper, Boolean messageFlag)
focal_class.identifier: checkPropertiesFile
focal_class.parameters: (PropertiesHelper propertiesHelper, Boolean messageFlag)
focal_class.return: void
focal_class.signature: void checkPropertiesFile(PropertiesHelper propertiesHelper, Boolean messageFlag)
focal_class.class_method_signature: HerdApiClientOperations.currentUserGetCurrentUser(CurrentUserApi currentUserApi)
focal_class.full_signature:  UserAuthorizations currentUserGetCurrentUser(CurrentUserApi currentUserApi)
focal_class.identifier: currentUserGetCurrentUser
focal_class.parameters: (CurrentUserApi currentUserApi)
focal_class.return: UserAuthorizations
focal_class.signature: UserAuthorizations currentUserGetCurrentUser(CurrentUserApi currentUserApi)
focal_method.body: JsonSqsMessageBody mapJsontoBdataKey(String messageBody) throws IOException
      {
          ObjectMapper mapper = new ObjectMapper();
          mapper.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true);
          mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
  
          return mapper.readValue(new JSONObject(messageBody).getString(JSON_KEY), JsonSqsMessageBody.class);
      }
focal_method.class_method_signature: HerdApiClientOperations.mapJsontoBdataKey(String messageBody)
focal_method.full_signature:  JsonSqsMessageBody mapJsontoBdataKey(String messageBody)
focal_method.identifier: mapJsontoBdataKey
focal_method.invocations: configure disable readValue getString
focal_method.parameters: (String messageBody)
focal_method.return: JsonSqsMessageBody
focal_method.signature: JsonSqsMessageBody mapJsontoBdataKey(String messageBody)