@Test public void createSettings() { final String dmnFilePath = "test"; final Path pathMock = mock(Path.class); final Settings retrieved = dmnSimulationCreationStrategy.createSettings(pathMock, dmnFilePath); assertNotNull(retrieved); assertEquals(ScenarioSimulationModel.Type.DMN, retrieved.getType()); assertEquals(dmnFilePath, retrieved.getDmnFilePath()); }
@Override public Settings createSettings(Path context, String dmnFilePath) { Settings toReturn = new Settings(); toReturn.setType(ScenarioSimulationModel.Type.DMN); toReturn.setDmnFilePath(dmnFilePath); dmnTypeService.initializeNameAndNamespace(toReturn, context, dmnFilePath); return toReturn; }
DMNSimulationSettingsCreationStrategy implements SimulationSettingsCreationStrategy { @Override public Settings createSettings(Path context, String dmnFilePath) { Settings toReturn = new Settings(); toReturn.setType(ScenarioSimulationModel.Type.DMN); toReturn.setDmnFilePath(dmnFilePath); dmnTypeService.initializeNameAndNamespace(toReturn, context, dmnFilePath); return toReturn; } }
DMNSimulationSettingsCreationStrategy implements SimulationSettingsCreationStrategy { @Override public Settings createSettings(Path context, String dmnFilePath) { Settings toReturn = new Settings(); toReturn.setType(ScenarioSimulationModel.Type.DMN); toReturn.setDmnFilePath(dmnFilePath); dmnTypeService.initializeNameAndNamespace(toReturn, context, dmnFilePath); return toReturn; }  }
DMNSimulationSettingsCreationStrategy implements SimulationSettingsCreationStrategy { @Override public Settings createSettings(Path context, String dmnFilePath) { Settings toReturn = new Settings(); toReturn.setType(ScenarioSimulationModel.Type.DMN); toReturn.setDmnFilePath(dmnFilePath); dmnTypeService.initializeNameAndNamespace(toReturn, context, dmnFilePath); return toReturn; }  @Override Simulation createSimulation(Path context, String dmnFilePath); @Override Settings createSettings(Path context, String dmnFilePath); }
DMNSimulationSettingsCreationStrategy implements SimulationSettingsCreationStrategy { @Override public Settings createSettings(Path context, String dmnFilePath) { Settings toReturn = new Settings(); toReturn.setType(ScenarioSimulationModel.Type.DMN); toReturn.setDmnFilePath(dmnFilePath); dmnTypeService.initializeNameAndNamespace(toReturn, context, dmnFilePath); return toReturn; }  @Override Simulation createSimulation(Path context, String dmnFilePath); @Override Settings createSettings(Path context, String dmnFilePath);  }