PmmlPredictionModel implements PredictionModel { @Override public PMML4Result evaluateAll(PMMLContext context) { return pmmlRuntime.evaluate(pmmlModel.getName(), context); } PmmlPredictionModel(PMMLRuntime pmmlRuntime, String modelName); @Override PMMLContext newContext(Map<String, Object> variables); @Override PMML4Result evaluateAll(PMMLContext context); @Override KiePMMLModel getKiePMMLModel();  }
@Test void evaluateAll() { final Map<String, Object> parameters = getParameters(); PMMLContext context = pmmlPredictionModel.newContext(parameters); assertEquals(PMML_4_RESULT, pmmlPredictionModel.evaluateAll(context)); }