agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/util/DomainSetup.java
/**
     * Turn a file with json content into a JSONObject
     * @param pathToFile path to the file with json content
     * @return JSONObject from a file with json content
     */
Turn a file with json content into a JSONObject
@param pathToFile path to the file with json content
@return JSONObject from a file with json content
Turn a file with json content into a JSONObject @param pathToFile path to the file with json content @return JSONObject from a file with json content
public JSONObject retrieveDataFile(String pathToFile){
        JSONObject json = null;
        try {
            String contents = FileUtils.readFileToString(new File(pathToFile));
            json = new JSONObject(contents);
        } catch (IOException | JSONException e) {
            e.printStackTrace();
        }
        return json;
    }
public JSONObject retrieveDataFile ( String pathToFile ) { JSONObject json = null ; try { String contents = FileUtils . readFileToString ( new File ( pathToFile ) ) ; json = new JSONObject ( contents ) ; } catch ( IOException | JSONException e ) { e . printStackTrace ( ) ; } return json ; }
Turn a file with json content into a JSONObject
 @param pathToFile path to the file with json content
 @return JSONObject from a file with json content
Turn a file with json content into a JSONObject @param pathToFile path to the file with json content @return JSONObject from a file with json content