Search in sources :

Example 1 with KiePMMLScorecardModel

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);
}
Also used : KiePMMLScorecardModel(org.kie.pmml.models.scorecard.model.KiePMMLScorecardModel) Scorecard(org.dmg.pmml.scorecard.Scorecard) HasClassLoaderMock(org.kie.pmml.compiler.commons.mocks.HasClassLoaderMock) Test(org.junit.Test)

Example 2 with KiePMMLScorecardModel

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);
}
Also used : KiePMMLScorecardModel(org.kie.pmml.models.scorecard.model.KiePMMLScorecardModel) Scorecard(org.dmg.pmml.scorecard.Scorecard) HasClassLoaderMock(org.kie.pmml.compiler.commons.mocks.HasClassLoaderMock) Test(org.junit.Test)

Aggregations

Scorecard (org.dmg.pmml.scorecard.Scorecard)2 Test (org.junit.Test)2 HasClassLoaderMock (org.kie.pmml.compiler.commons.mocks.HasClassLoaderMock)2 KiePMMLScorecardModel (org.kie.pmml.models.scorecard.model.KiePMMLScorecardModel)2