}
@Test
public void testMissingTreeAllMissingDefault() throws Exception {
PMML4Compiler compiler = new PMML4Compiler();
PMML pmml = compiler.loadModel( PMML, ResourceFactory.newClassPathResource( source2 ).getInputStream() );
for ( Object o : pmml.getAssociationModelsAndBaselineModelsAndClusteringModels() ) {
if ( o instanceof TreeModel ) {
TreeModel tree = (TreeModel) o;
tree.setMissingValueStrategy( MISSINGVALUESTRATEGY.DEFAULT_CHILD );
}
}
String theory = compiler.generateTheory( pmml );
if ( VERBOSE ) {
System.out.println( theory );
}
KieSession kSession = getSession( theory );
setKSession( kSession );