plan.connect(constant1, gt1) ;
plan.connect(constant2, gt1) ;
plan.connect(gt1, equal1) ;
plan.connect(constant3, equal1) ;
CompilationMessageCollector collector = new CompilationMessageCollector() ;
TypeCheckingValidator typeValidator = new TypeCheckingValidator() ;
try {
typeValidator.validate(plan, collector) ;
fail("Exception expected") ;
}
catch (PlanValidationException pve) {
// good
}
printMessageCollector(collector) ;
printTypeGraph(plan) ;
if (!collector.hasError()) {
throw new AssertionError("Error expected") ;
}
}