doAsyncGcdTest("Biff", 2, 2, "Hello, Biff. The GCD of 2 and 2 is 2.");
}
private void doGcdTest(int x, int y, int expectedGcd) throws Exception {
PipelineService service = PipelineServiceFactory.newPipelineService();
String pipelineId = service.startNewPipeline(new GCDJob(), x, y);
int calculatedGcd = waitForJobToComplete(pipelineId);
logger.info("The GCD of " + x + " and " + y + " is " + calculatedGcd);
assertEquals(expectedGcd, calculatedGcd);
// PipelineObjects pipelineObjects =
// PipelineManager.queryFullPipeline(pipelineId);