* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
* Modifications Copyright (C) 2020 Nordix Foundation.
+ * Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
parameters.setVersion(engineServiceKey.getVersion());
parameters.setId(100);
parameters.getEngineParameters().getExecutorParameterMap().put("MVEL", new MvelExecutorParameters());
- service = EngineServiceImpl.create(parameters);
-
- LOGGER.debug("Running TestApexEngine. . .");
apexSamplePolicyModel = new SampleDomainModelFactory().getSamplePolicyModel("JAVASCRIPT");
assertNotNull(apexSamplePolicyModel);
apexSampleModelString = getModelString(apexSamplePolicyModel);
+ parameters.setPolicyModel(apexSampleModelString);
+ service = EngineServiceImpl.create(parameters);
+
+ LOGGER.debug("Running TestApexEngine. . .");
+
// create engine
listener = new TestListener();
service.registerActionListener("MyListener", listener);