Class MockFeatureWithCalculationFixture

Object
MockFeatureWithCalculationFixture

public class MockFeatureWithCalculationFixture extends Object
Creates a mock-feature which used a mock CalculationPart under the hood

Tests can be executed so as to count the number of times the calculation and feature's MockFeatureWithCalculation.calculate(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.feature.input.FeatureInput>) method are called.

This is implemented using (ugly) static methods and some reflection, as Feature's must remain valid Anchor-bean's and thus cannot be inner-classes or rely on parameterization in the constructor.

Author:
Owen Feehan