agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/util/DomainSetup.java
/**
     * Assuming Execution and Storage systems are in the database we can persist a set of Software domain objects
     * for testing
     */
Assuming Execution and Storage systems are in the database we can persist a set of Software domain objects
for testing
Assuming Execution and Storage systems are in the database we can persist a set of Software domain objects for testing
public void persistSoftwareDomain(){
        fillSoftwareMap(); 
        for(JSONObject softwareJson : jsonSoftwareList){
            try {
                Software software = Software.fromJSON(softwareJson,SOFTWARE_OWNER);
                software.setOwner(SOFTWARE_OWNER);
                SoftwareDao.persist(software);
            } catch (JSONException e) {
                log.error("Unable to marshall software from json", e);
            }
        }
    }
public void persistSoftwareDomain ( ) { fillSoftwareMap ( ) ; for ( JSONObject softwareJson : jsonSoftwareList ) { try { Software software = Software . fromJSON ( softwareJson , SOFTWARE_OWNER ) ; software . setOwner ( SOFTWARE_OWNER ) ; SoftwareDao . persist ( software ) ; } catch ( JSONException e ) { log . error ( "Unable to marshall software from json" , e ) ; } } }
Assuming Execution and Storage systems are in the database we can persist a set of Software domain objects
 for testing
Assuming Execution and Storage systems are in the database we can persist a set of Software domain objects for testing
// we assume persistSystemDomain has been executed before we begin due to Software.fromJson // dependency on systems being available in the database. //                System.out.println(softwareJson.get("id"));