agave-apps/apps-core/src/test/java/org/iplantc/service/apps/dao/AbstractDaoTest.java
/**
	 * Creates private execution system with a random uuid as the id.
	 * Asserts that the system is created and valid prior to returning.
	 * @return a persisted {@link ExecutionSystem}
	 */
Creates private execution system with a random uuid as the id.
Asserts that the system is created and valid prior to returning.
@return a persisted  ExecutionSystem
Creates private execution system with a random uuid as the id . Asserts that the system is created and valid prior to returning . @return a persisted ExecutionSystem
protected ExecutionSystem createExecutionSystem() {
		ExecutionSystem system = null;
		try {
			JSONObject json = JSONTestDataUtil.getInstance().getTestDataObject(TEST_EXECUTION_SYSTEM_FILE);
			json.put("id", UUID.randomUUID().toString());
			system = ExecutionSystem.fromJSON(json);
			system.setOwner(SYSTEM_OWNER);
			new SystemDao().persist(system);
		} catch (IOException|JSONException|SystemArgumentException e) {
			log.error("Unable create execution system", e);
			Assert.fail("Unable create execution system", e);
		}
		return system;
	}
protected ExecutionSystem createExecutionSystem ( ) { ExecutionSystem system = null ; try { JSONObject json = JSONTestDataUtil . getInstance ( ) . getTestDataObject ( TEST_EXECUTION_SYSTEM_FILE ) ; json . put ( "id" , UUID . randomUUID ( ) . toString ( ) ) ; system = ExecutionSystem . fromJSON ( json ) ; system . setOwner ( SYSTEM_OWNER ) ; new SystemDao ( ) . persist ( system ) ; } catch ( IOException | JSONException | SystemArgumentException e ) { log . error ( "Unable create execution system" , e ) ; Assert . fail ( "Unable create execution system" , e ) ; } return system ; }
Creates private execution system with a random uuid as the id.
Creates private execution system with a random uuid as the id .