agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/managers/JobRequestProcessorIT.java
/**
	 * Creates an {@link ExecutionSystem} from the test JSON files in the test resources folder. The
	 * returned system is not persisted.
	 * @return a non-persisted execution system with random uuid and name.
	 */
Creates an  ExecutionSystem from the test JSON files in the test resources folder. The
returned system is not persisted.
@return a non-persisted execution system with random uuid and name.
Creates an ExecutionSystem from the test JSON files in the test resources folder . The returned system is not persisted . @return a non - persisted execution system with random uuid and name .
protected ExecutionSystem createMockExecutionSystem() {
		ExecutionSystem system = null;
		try {
			JSONObject json = JSONTestDataUtil.getInstance().getTestDataObject(TEST_EXECUTION_SYSTEM_FILE);
			json.put("id", UUID.randomUUID().toString());
			json.put("id", UUID.randomUUID().toString());
			system = ExecutionSystem.fromJSON(json);
			system.setOwner(SYSTEM_OWNER);
			system.setId(3L);
		} catch (IOException | JSONException | SystemArgumentException e) {
			Assert.fail("Unable create execution system", e);
		}
		return system;
	}
protected ExecutionSystem createMockExecutionSystem ( ) { ExecutionSystem system = null ; try { JSONObject json = JSONTestDataUtil . getInstance ( ) . getTestDataObject ( TEST_EXECUTION_SYSTEM_FILE ) ; json . put ( "id" , UUID . randomUUID ( ) . toString ( ) ) ; json . put ( "id" , UUID . randomUUID ( ) . toString ( ) ) ; system = ExecutionSystem . fromJSON ( json ) ; system . setOwner ( SYSTEM_OWNER ) ; system . setId ( 3L ) ; } catch ( IOException | JSONException | SystemArgumentException e ) { Assert . fail ( "Unable create execution system" , e ) ; } return system ; }
Creates an {@link ExecutionSystem} from the test JSON files in the test resources folder.
Creates an { @link ExecutionSystem } from the test JSON files in the test resources folder .