agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/util/DomainSetup.java
/**
     * Create a list of JSONObjects given a directory with json text files
     * @param directory root directory where files are kept
     * @return  a list of JSONObjects
     * @throws java.io.IOException
     * @throws org.json.JSONException
     */
Create a list of JSONObjects given a directory with json text files
@param directory root directory where files are kept
@return  a list of JSONObjects
@throws java.io.IOException
@throws org.json.JSONException
Create a list of JSONObjects given a directory with json text files @param directory root directory where files are kept @return a list of JSONObjects @throws java . io . IOException @throws org . json . JSONException
private List<JSONObject> collectFiles(String directory) throws IOException, JSONException {
        List<File> fileList;
        File dir = new File(directory);
        fileList = (List<File>) FileUtils.listFiles(dir, new String[]{"json"}, false);
        return listOfJsonObjects(fileList);
    }
private List < JSONObject > collectFiles ( String directory ) throws IOException , JSONException { List < File > fileList ; File dir = new File ( directory ) ; fileList = ( List < File > ) FileUtils . listFiles ( dir , new String [ ] { "json" } , false ) ; return listOfJsonObjects ( fileList ) ; }
Create a list of JSONObjects given a directory with json text files
 @param directory root directory where files are kept
 @return  a list of JSONObjects
 @throws java.io.IOException
 @throws org.json.JSONException
Create a list of JSONObjects given a directory with json text files @param directory root directory where files are kept @return a list of JSONObjects @throws java . io . IOException @throws org . json . JSONException