agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/util/DomainSetup.java
/**
     * put a software json data file into the database
     * @param pathToSoftwareJsonFile  path to software json file
     */
put a software json data file into the database
@param pathToSoftwareJsonFile  path to software json file
put a software json data file into the database @param pathToSoftwareJsonFile path to software json file
public void persistSingleSoftwareEntryFromFile(String pathToSoftwareJsonFile) {
        JSONObject softwareJson = retrieveDataFile(pathToSoftwareJsonFile);
        try {
            Software software = Software.fromJSON(softwareJson,SOFTWARE_OWNER);
            SoftwareDao.persist(software);
        } catch (JSONException e) {
            log.error("Unable to marshall software from json", e);
        }
    }
public void persistSingleSoftwareEntryFromFile ( String pathToSoftwareJsonFile ) { JSONObject softwareJson = retrieveDataFile ( pathToSoftwareJsonFile ) ; try { Software software = Software . fromJSON ( softwareJson , SOFTWARE_OWNER ) ; SoftwareDao . persist ( software ) ; } catch ( JSONException e ) { log . error ( "Unable to marshall software from json" , e ) ; } }
put a software json data file into the database
 @param pathToSoftwareJsonFile  path to software json file
put a software json data file into the database @param pathToSoftwareJsonFile path to software json file