integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
public static Properties loadProps(String propsFile) throws Exception {
    Properties props = new Properties();
    // check file exists
    File f = new File(TestUtils.class.getClassLoader().getResource(propsFile).getFile());
    if (!f.exists()) {
      throw new IllegalArgumentException("FAILURE: Invalid properties file " + propsFile);
    }

    // load props
    FileInputStream inStream = new FileInputStream(f);
    props.load(inStream);
    inStream.close();

    return props;
  }
/**
   * load properties.
   * @param propsFile properties file
   * @return properties
   * @throws Exception on failure
   */
load properties.
@param propsFile properties file
@return properties
@throws Exception on failure
load properties . @param propsFile properties file @return properties @throws Exception on failure
public static Properties loadProps(String propsFile) throws Exception {
    Properties props = new Properties();
    File f = new File(TestUtils.class.getClassLoader().getResource(propsFile).getFile());
    if (!f.exists()) {
      throw new IllegalArgumentException("FAILURE: Invalid properties file " + propsFile);
    }
    FileInputStream inStream = new FileInputStream(f);
    props.load(inStream);
    inStream.close();
    return props;
  }
public static Properties loadProps ( String propsFile ) throws Exception { Properties props = new Properties ( ) ; File f = new File ( TestUtils . class . getClassLoader ( ) . getResource ( propsFile ) . getFile ( ) ) ; if ( ! f . exists ( ) ) { throw new IllegalArgumentException ( "FAILURE: Invalid properties file " + propsFile ) ; } FileInputStream inStream = new FileInputStream ( f ) ; props . load ( inStream ) ; inStream . close ( ) ; return props ; }
load properties.
load properties .
// check file exists // load props