assertEquals("Unable to execute because of 1 missing input(s)", executionLog.getExceptionMessage());
assertNull(executionLog.getExceptionStackTrace());
}
public void mockFunctionInvocationOneInputOneOutput() throws Exception {
final MockFunction mockFunction = CalculationNodeUtils.getMockFunction();
final TestCalculationNode calcNode = CalculationNodeUtils.getTestCalcNode(mockFunction);
final CalculationJob calcJob = CalculationNodeUtils.getCalculationJob(mockFunction);
final ValueSpecification inputSpec = CalculationNodeUtils.getMockFunctionInputs(mockFunction).iterator().next();
final ComputedValue inputValue = new ComputedValue(inputSpec, "Just an input object");
final ViewComputationCache cache = calcNode.getCache(calcJob.getSpecification());
cache.putSharedValue(inputValue);
final CalculationJobResult jobResult = calcNode.executeJob(calcJob);
assertNotNull(jobResult);
assertEquals(1, jobResult.getResultItems().size());
final CalculationJobResultItem resultItem = jobResult.getResultItems().get(0);
assertEquals(InvocationResult.SUCCESS, resultItem.getResult());
assertEquals("Nothing we care about", cache.getValue(mockFunction.getResultSpec()));
}