KogitoDMODataManagementStrategy extends AbstractDMODataManagementStrategy { @Override protected List<String> getFactTypes() { return Arrays.asList(kogitoOracle.getFactTypes()); } KogitoDMODataManagementStrategy(KogitoAsyncPackageDataModelOracle kogitoOracle); @Override void manageScenarioSimulationModelContent(ObservablePath currentPath, ScenarioSimulationModelContent toManage); @Override boolean isADataType(String value);  }
@Test public void getFactTypesEmpty() { when(oracleMock.getFactTypes()).thenReturn(new String[0]); List<String> facts = kogitoDMODataManagementStrategySpy.getFactTypes(); assertTrue(facts.isEmpty()); }
@Test public void getFactTypes() { String[] array = {"Test"}; when(oracleMock.getFactTypes()).thenReturn(array); List<String> facts = kogitoDMODataManagementStrategySpy.getFactTypes(); assertTrue(facts.size() == 1); assertEquals("Test", facts.get(0)); }