use of org.kie.pmml.models.scorecard.model.KiePMMLScorecardModel in project drools by kiegroup.
the class KiePMMLScorecardModelFactoryTest method getKiePMMLScorecardModel.
@Test
public void getKiePMMLScorecardModel() {
final CommonCompilationDTO<Scorecard> source = CommonCompilationDTO.fromGeneratedPackageNameAndFields(PACKAGE_NAME, basicComplexPartialScorePmml, basicComplexPartialScore, new HasClassLoaderMock());
KiePMMLScorecardModel retrieved = KiePMMLScorecardModelFactory.getKiePMMLScorecardModel(ScorecardCompilationDTO.fromCompilationDTO(source));
assertNotNull(retrieved);
}
use of org.kie.pmml.models.scorecard.model.KiePMMLScorecardModel in project drools by kiegroup.
the class ScorecardModelImplementationProviderTest method getKiePMMLModel.
@Test
public void getKiePMMLModel() {
final CommonCompilationDTO<Scorecard> compilationDTO = CommonCompilationDTO.fromGeneratedPackageNameAndFields(PACKAGE_NAME, basicComplexPartialScorePmml, basicComplexPartialScore, new HasClassLoaderMock());
KiePMMLScorecardModel retrieved = provider.getKiePMMLModel(compilationDTO);
assertNotNull(retrieved);
}
Aggregations