@Test void newInstance() { ObjectCreationExpr retrieved = predictionConfigGenerator.newInstance(); String expected = "new org.kie.kogito.pmml.config.StaticPredictionConfig()"; assertEquals(expected, retrieved.toString()); }
public ObjectCreationExpr newInstance() { return new ObjectCreationExpr().setType(StaticPredictionConfig.class.getCanonicalName()); }
PredictionConfigGenerator extends TemplatedGenerator { public ObjectCreationExpr newInstance() { return new ObjectCreationExpr().setType(StaticPredictionConfig.class.getCanonicalName()); } }
PredictionConfigGenerator extends TemplatedGenerator { public ObjectCreationExpr newInstance() { return new ObjectCreationExpr().setType(StaticPredictionConfig.class.getCanonicalName()); } PredictionConfigGenerator(String packageName); }
PredictionConfigGenerator extends TemplatedGenerator { public ObjectCreationExpr newInstance() { return new ObjectCreationExpr().setType(StaticPredictionConfig.class.getCanonicalName()); } PredictionConfigGenerator(String packageName); ObjectCreationExpr newInstance(); List<BodyDeclaration<?>> members(); }
PredictionConfigGenerator extends TemplatedGenerator { public ObjectCreationExpr newInstance() { return new ObjectCreationExpr().setType(StaticPredictionConfig.class.getCanonicalName()); } PredictionConfigGenerator(String packageName); ObjectCreationExpr newInstance(); List<BodyDeclaration<?>> members();  }