agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/util/DomainSetup.java
/**
     * persists a basic set of software that draws on known execution and storage systems
     */
persists a basic set of software that draws on known execution and storage systems
persists a basic set of software that draws on known execution and storage systems
public void persistSoftwareAndSystemsDomain(){
        persistDefaultTestSystemsData();
        for(JSONObject softwareJson : jsonSoftwareList){
            try {
                Software software = Software.fromJSON(softwareJson,SOFTWARE_OWNER);
                software.setOwner(SYSTEM_OWNER);
                SoftwareDao.persist(software);
            } catch (JSONException e) {
                log.error("Unable to marshall software from json", e);
            }
        }
    }
public void persistSoftwareAndSystemsDomain ( ) { persistDefaultTestSystemsData ( ) ; for ( JSONObject softwareJson : jsonSoftwareList ) { try { Software software = Software . fromJSON ( softwareJson , SOFTWARE_OWNER ) ; software . setOwner ( SYSTEM_OWNER ) ; SoftwareDao . persist ( software ) ; } catch ( JSONException e ) { log . error ( "Unable to marshall software from json" , e ) ; } } }
persists a basic set of software that draws on known execution and storage systems
persists a basic set of software that draws on known execution and storage systems