@Test public void addSourceMap() { Map<String, String> retrieved = kiePMMLDroolsModelWithSources.getSourcesMap(); assertTrue(retrieved.isEmpty()); kiePMMLDroolsModelWithSources.addSourceMap("KEY", "VALUE"); retrieved = kiePMMLDroolsModelWithSources.getSourcesMap(); assertTrue(retrieved.containsKey("KEY")); assertEquals("VALUE", retrieved.get("KEY")); }
@Override public void addSourceMap(String key, String value) { sourcesMap.put(key, value); }
KiePMMLDroolsModelWithSources extends KiePMMLDroolsModel implements HasRule { @Override public void addSourceMap(String key, String value) { sourcesMap.put(key, value); } }
KiePMMLDroolsModelWithSources extends KiePMMLDroolsModel implements HasRule { @Override public void addSourceMap(String key, String value) { sourcesMap.put(key, value); } KiePMMLDroolsModelWithSources(String name, String kmodulePackageName, Map<String, String> sourcesMap, PackageDescr packageDescr); }
KiePMMLDroolsModelWithSources extends KiePMMLDroolsModel implements HasRule { @Override public void addSourceMap(String key, String value) { sourcesMap.put(key, value); } KiePMMLDroolsModelWithSources(String name, String kmodulePackageName, Map<String, String> sourcesMap, PackageDescr packageDescr); @Override Object evaluate(final Object knowledgeBase, Map<String, Object> requestData); @Override Map<String, Object> getOutputFieldsMap(); @Override Map<String, String> getSourcesMap(); @Override void addSourceMap(String key, String value); @Override String getKModulePackageName(); @Override String getPkgUUID(); PackageDescr getPackageDescr(); }
KiePMMLDroolsModelWithSources extends KiePMMLDroolsModel implements HasRule { @Override public void addSourceMap(String key, String value) { sourcesMap.put(key, value); } KiePMMLDroolsModelWithSources(String name, String kmodulePackageName, Map<String, String> sourcesMap, PackageDescr packageDescr); @Override Object evaluate(final Object knowledgeBase, Map<String, Object> requestData); @Override Map<String, Object> getOutputFieldsMap(); @Override Map<String, String> getSourcesMap(); @Override void addSourceMap(String key, String value); @Override String getKModulePackageName(); @Override String getPkgUUID(); PackageDescr getPackageDescr();  }