integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
public static Map<String, Object> loadYaml(String yamlFile) throws Exception {
    // read input domain yaml to test
    Map<String, Object> map = new HashMap<String, Object>();
    Yaml yaml = new Yaml();
    InputStream is = TestUtils.class.getClassLoader().getResourceAsStream(yamlFile);
    map = yaml.load(is);
    is.close();
    return map;
  }
/**
   * load YAML.
   * @param yamlFile YAML file
   * @return Object hierarchy
   * @throws Exception on failure
   */
load YAML.
@param yamlFile YAML file
@return Object hierarchy
@throws Exception on failure
load YAML . @param yamlFile YAML file @return Object hierarchy @throws Exception on failure
public static Map<String, Object> loadYaml(String yamlFile) throws Exception {
    Map<String, Object> map = new HashMap<String, Object>();
    Yaml yaml = new Yaml();
    InputStream is = TestUtils.class.getClassLoader().getResourceAsStream(yamlFile);
    map = yaml.load(is);
    is.close();
    return map;
  }
public static Map < String , Object > loadYaml ( String yamlFile ) throws Exception { Map < String , Object > map = new HashMap < String , Object > ( ) ; Yaml yaml = new Yaml ( ) ; InputStream is = TestUtils . class . getClassLoader ( ) . getResourceAsStream ( yamlFile ) ; map = yaml . load ( is ) ; is . close ( ) ; return map ; }
load YAML.
load YAML .
// read input domain yaml to test