test_class.declarator: basedir
test_class.modifier: private
test_class.original_string: private String basedir;
test_class.type: String
test_class.var_name: basedir
test_class.file: oneops-model/src/test/java/com/oneops/yaml/OneOpsYamlReaderTest.java
test_class.identifier: OneOpsYamlReaderTest
test_case.body: @Test
    public void validateReadingTestYaml() throws Exception {
      OneOpsYamlReader reader = new OneOpsYamlReader();
      TestCase testCaseYaml = reader
          .read(yaml("src/test/yaml/oo-v2", "testcase.yaml"), TestCase.class);
  
      assertEquals("Evaluate optional component add/delete", testCaseYaml.getDescription());
      assertEquals("false", testCaseYaml.getRandomcloud());
  
      assertEquals("pulldesign", testCaseYaml.getTags().get(0));
  
      assertTrue(testCaseYaml.getClouds().keySet().contains("cloud0"));
      List<Cloud> clouds = Lists.newArrayList(testCaseYaml.getClouds().values());
      assertEquals(1, clouds.get(0).getDeploymentorder());
  
      assertTrue(testCaseYaml.getTemplates().keySet().contains("template-1.yaml"));
      List<Template> templates = Lists.newArrayList(testCaseYaml.getTemplates().values());
      Template template = templates.get(0);
      assertEquals("evaluate add of optional component user-temp",
          template.getAssertions().get("addusercomponent").getMessage());
    }
test_case.class_method_signature: OneOpsYamlReaderTest.validateReadingTestYaml()
test_case.full_signature: @Test public void validateReadingTestYaml()
test_case.identifier: validateReadingTestYaml
test_case.invocations: read yaml assertEquals getDescription assertEquals getRandomcloud assertEquals get getTags assertTrue contains keySet getClouds newArrayList values getClouds assertEquals getDeploymentorder get assertTrue contains keySet getTemplates newArrayList values getTemplates get assertEquals getMessage get getAssertions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void validateReadingTestYaml()
focal_class.file: oneops-model/src/main/java/com/oneops/yaml/OneOpsYamlReader.java
focal_class.identifier: OneOpsYamlReader
focal_class.class_method_signature: OneOpsYamlReader.read(File yamlfile, Class<T> yamlModelClass)
focal_class.full_signature: public T read(File yamlfile, Class<T> yamlModelClass)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (File yamlfile, Class<T> yamlModelClass)
focal_class.return: T
focal_class.signature: T read(File yamlfile, Class<T> yamlModelClass)
focal_method.body: public <T> T read(File yamlfile, Class<T> yamlModelClass) throws FileNotFoundException {
      Yaml yaml = new Yaml();
      T yamlmodel = yaml.loadAs(new FileInputStream(yamlfile), yamlModelClass);
      return yamlmodel;
    }
focal_method.class_method_signature: OneOpsYamlReader.read(File yamlfile, Class<T> yamlModelClass)
focal_method.full_signature: public T read(File yamlfile, Class<T> yamlModelClass)
focal_method.identifier: read
focal_method.invocations: loadAs
focal_method.modifiers: public
focal_method.parameters: (File yamlfile, Class<T> yamlModelClass)
focal_method.return: T
focal_method.signature: T read(File yamlfile, Class<T> yamlModelClass)