agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/util/DomainSetup.java
/**
     * This will fill up a list of Software domain objects that can be used for testing. They are not
     * persisted as yet but require that base systems data is in place in the database.
     *
     */
This will fill up a list of Software domain objects that can be used for testing. They are not
persisted as yet but require that base systems data is in place in the database.
This will fill up a list of Software domain objects that can be used for testing . They are not persisted as yet but require that base systems data is in place in the database .
public void fillSoftwareMap(){
        for(JSONObject json : jsonSoftwareList){
            try {
                String key = (String)json.get("id");
                softwareMap.put(key, Software.fromJSON(json,SOFTWARE_OWNER));
            } catch (JSONException e) {
                e.printStackTrace();
            }
        }
    }
public void fillSoftwareMap ( ) { for ( JSONObject json : jsonSoftwareList ) { try { String key = ( String ) json . get ( "id" ) ; softwareMap . put ( key , Software . fromJSON ( json , SOFTWARE_OWNER ) ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } } }
This will fill up a list of Software domain objects that can be used for testing.
This will fill up a list of Software domain objects that can be used for testing .
// this requires base system data in database to work // must be able read remote system from db to create a software object. //                System.out.println(key);