test_class.declarator: dataBridgeManifestReader
test_class.modifier: private
test_class.original_string: private DataBridgeManifestReader<DataBridgeBaseManifestDto> dataBridgeManifestReader;
test_class.type: DataBridgeManifestReader<DataBridgeBaseManifestDto>
test_class.var_name: dataBridgeManifestReader
test_class.file: herd-code/herd-tools/herd-tools-common/src/test/java/org/finra/herd/tools/common/databridge/DataBridgeManifestReaderTest.java
test_class.identifier: DataBridgeManifestReaderTest
test_case.body: @Test
      public void testReadJsonManifest() throws Exception
      {
          DataBridgeBaseManifestDto dataBridgeBaseManifestDto = getDataBridgeBaseManifestDto();
  
          File file = createTempFile(new ObjectMapper().writeValueAsString(dataBridgeBaseManifestDto));
          try
          {
              dataBridgeManifestReader.readJsonManifest(file);
          }
          catch (Exception e)
          {
              Assert.fail("unexpected exception was thrown " + e);
          }
      }
test_case.class_method_signature: DataBridgeManifestReaderTest.testReadJsonManifest()
test_case.full_signature: @Test public void testReadJsonManifest()
test_case.identifier: testReadJsonManifest
test_case.invocations: getDataBridgeBaseManifestDto createTempFile writeValueAsString readJsonManifest fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReadJsonManifest()
focal_class.file: herd-code/herd-tools/herd-tools-common/src/main/java/org/finra/herd/tools/common/databridge/DataBridgeManifestReader.java
focal_class.identifier: DataBridgeManifestReader
focal_class.class_method_signature: DataBridgeManifestReader.getManifestFromReader(Reader reader, ObjectMapper objectMapper)
focal_class.full_signature: protected abstract M getManifestFromReader(Reader reader, ObjectMapper objectMapper)
focal_class.identifier: getManifestFromReader
focal_class.modifiers: protected abstract
focal_class.parameters: (Reader reader, ObjectMapper objectMapper)
focal_class.return: M
focal_class.signature: M getManifestFromReader(Reader reader, ObjectMapper objectMapper)
focal_class.class_method_signature: DataBridgeManifestReader.readJsonManifest(File jsonManifestFile)
focal_class.full_signature: public M readJsonManifest(File jsonManifestFile)
focal_class.identifier: readJsonManifest
focal_class.modifiers: public
focal_class.parameters: (File jsonManifestFile)
focal_class.return: M
focal_class.signature: M readJsonManifest(File jsonManifestFile)
focal_class.class_method_signature: DataBridgeManifestReader.validateManifest(M manifest)
focal_class.full_signature: protected void validateManifest(M manifest)
focal_class.identifier: validateManifest
focal_class.modifiers: protected
focal_class.parameters: (M manifest)
focal_class.return: void
focal_class.signature: void validateManifest(M manifest)
focal_method.body: public M readJsonManifest(File jsonManifestFile) throws IOException, IllegalArgumentException
      {
          // Verify that the file exists and can be read.
          HerdFileUtils.verifyFileExistsAndReadable(jsonManifestFile);
  
          // Deserialize the JSON manifest.
          BufferedInputStream buffer = new BufferedInputStream(new FileInputStream(jsonManifestFile));
          BufferedReader reader = new BufferedReader(new InputStreamReader(buffer, Charsets.UTF_8));
          ObjectMapper objectMapper = new ObjectMapper();
          objectMapper.setVisibility(PropertyAccessor.FIELD, Visibility.ANY);
          objectMapper.setVisibility(PropertyAccessor.GETTER, Visibility.NONE);
          objectMapper.setVisibility(PropertyAccessor.SETTER, Visibility.NONE);
          M manifest = getManifestFromReader(reader, objectMapper);
  
          // Validate the manifest and return it.
          validateManifest(manifest);
          return manifest;
      }
focal_method.class_method_signature: DataBridgeManifestReader.readJsonManifest(File jsonManifestFile)
focal_method.full_signature: public M readJsonManifest(File jsonManifestFile)
focal_method.identifier: readJsonManifest
focal_method.invocations: verifyFileExistsAndReadable setVisibility setVisibility setVisibility getManifestFromReader validateManifest
focal_method.modifiers: public
focal_method.parameters: (File jsonManifestFile)
focal_method.return: M
focal_method.signature: M readJsonManifest(File jsonManifestFile)