final FunctionInputs inputs = new FunctionInputsImpl(null, new ComputedValue(INPUT_VALUE, input));
FUNCTION.execute(new FunctionExecutionContext(), inputs, ComputationTarget.NULL, Collections.singleton(DESIRED_VALUE));
}
public void testExecuteMissingData() {
final HistoricalViewEvaluationMarketData input = new HistoricalViewEvaluationMarketData();
input.addTimeSeries(timeSeriesSpecification(0), localDateDoubleTimeSeries(10, 0, 5));
input.addTimeSeries(timeSeriesSpecification(1), localDateObjectTimeSeries(10));
input.addTimeSeries(timeSeriesSpecification(2), localDateDoubleTimeSeries(10, 0, 5));
input.addTimeSeries(timeSeriesSpecification(3), localDateObjectTimeSeries(10));
input.addTimeSeries(timeSeriesSpecification(4), localDateDoubleTimeSeries(10, 0, 5));
input.addTimeSeries(timeSeriesSpecification(5), localDateDoubleTimeSeries(0, 0, 5));
final FunctionInputs inputs = new FunctionInputsImpl(null, new ComputedValue(INPUT_VALUE, input));
final Set<ComputedValue> result = FUNCTION.execute(new FunctionExecutionContext(), inputs, ComputationTarget.NULL, Collections.singleton(DESIRED_VALUE));
assertEquals(result.size(), 1);
final ComputedValue value = result.iterator().next();
assertEquals(value.getValue().getClass(), DoubleLabelledMatrix2D.class);