public void originalAndCacheTypeStep() {
runOriginalAndCacheType(SelectionCacheType.STEP, 5);
}
public void runOriginalAndCacheType(SelectionCacheType cacheType, int timesCalled) {
TestdataSolution workingSolution = new TestdataSolution();
final List<Object> entityList = Arrays.<Object>asList(
new TestdataEntity("e1"), new TestdataEntity("e2"), new TestdataEntity("e3"));
PlanningEntityDescriptor entityDescriptor = mock(PlanningEntityDescriptor.class);
when(entityDescriptor.extractEntities(workingSolution)).thenReturn(entityList);
FromSolutionEntitySelector entitySelector = new FromSolutionEntitySelector(entityDescriptor, cacheType, false);