BusinessCentralDMODataManagementStrategy extends AbstractDMODataManagementStrategy { protected void fieldCompletionsCallbackMethod(String factName, Map<String, String> superTypeMap, ModelField[] result, Callback<FactModelTree> aggregatorCallback) { FactModelTree toSend = getFactModelTree(factName, superTypeMap, result); aggregatorCallback.callback(toSend); } BusinessCentralDMODataManagementStrategy(final AsyncPackageDataModelOracleFactory oracleFactory); @Override void manageScenarioSimulationModelContent(ObservablePath currentPath, ScenarioSimulationModelContent toManage); @Override boolean isADataType(String value); AsyncPackageDataModelOracle getOracle();  }
@Test public void fieldCompletionsCallbackMethod() { ModelField[] result = {}; Map<String, String> superTypesMap = Collections.emptyMap(); Callback<FactModelTree> aggregatorCallbackMock = mock(Callback.class); businessCentralDmoDataManagementStrategySpy.fieldCompletionsCallbackMethod(TestProperties.FACT_NAME, superTypesMap, result, aggregatorCallbackMock); verify(businessCentralDmoDataManagementStrategySpy, times(1)).getFactModelTree(eq(TestProperties.FACT_NAME), eq(superTypesMap), eq(result)); verify(aggregatorCallbackMock, times(1)).callback(isA(FactModelTree.class)); }