agave-apps/apps-core/src/test/java/org/iplantc/service/apps/dao/AbstractDaoTest.java
/**
	 * Creates a new persisted {@link Software} resource and assigns the {@link ExecutionSystem} and
	 * {@link StorageSystem} to it.
	 * @param executionSystem the system to which the new {@link Software} resource will be assigned
	 * @return a persisted {@link Software} resource
	 */
Creates a new persisted  Software resource and assigns the  ExecutionSystem and
StorageSystem to it.
@param executionSystem the system to which the new  Software resource will be assigned
@return a persisted  Software resource
Creates a new persisted Software resource and assigns the ExecutionSystem and StorageSystem to it . @param executionSystem the system to which the new Software resource will be assigned @return a persisted Software resource
protected Software createSoftware(ExecutionSystem executionSystem, StorageSystem storageSystem) throws Exception
	{
		JSONObject jsonSoftware = JSONTestDataUtil.getInstance().getTestDataObject(FORK_SOFTWARE_TEMPLATE_FILE);
		jsonSoftware.put("executionSystem", executionSystem.getSystemId());
		jsonSoftware.put("deploymentSystem", storageSystem.getSystemId());
		jsonSoftware.put("name", UUID.randomUUID().toString());
		Software software = Software.fromJSON(jsonSoftware, SYSTEM_OWNER);
		software.setOwner(SYSTEM_OWNER);
		SoftwareDao.persist(software);
		return software;
	}
protected Software createSoftware ( ExecutionSystem executionSystem , StorageSystem storageSystem ) throws Exception { JSONObject jsonSoftware = JSONTestDataUtil . getInstance ( ) . getTestDataObject ( FORK_SOFTWARE_TEMPLATE_FILE ) ; jsonSoftware . put ( "executionSystem" , executionSystem . getSystemId ( ) ) ; jsonSoftware . put ( "deploymentSystem" , storageSystem . getSystemId ( ) ) ; jsonSoftware . put ( "name" , UUID . randomUUID ( ) . toString ( ) ) ; Software software = Software . fromJSON ( jsonSoftware , SYSTEM_OWNER ) ; software . setOwner ( SYSTEM_OWNER ) ; SoftwareDao . persist ( software ) ; return software ; }
Creates a new persisted {@link Software} resource and assigns the {@link ExecutionSystem} and
 {@link StorageSystem} to it.
Creates a new persisted { @link Software } resource and assigns the { @link ExecutionSystem } and { @link StorageSystem } to it .
//		software.setExecutionSystem(executionSystem);