checker.addPackage("org.jboss.byteman.tests.auxiliary");
checker.addPackage("org.jboss.byteman.tests.bugfixes");
checker.addPackage("org.jboss.byteman.tests.javaops");
checker.addPackage("org.jboss.byteman.tests.helpertests");
checker.checkRules();
RuleCheckResult result= checker.getResult();
if(result.hasError() || result.hasWarning()) {
List<String> errors = result.getErrorMessages();
for(String error : errors) {
System.out.println(error);
}
errors = result.getParseErrorMessages();
for(String error : errors) {
System.out.println(error);
}
errors = result.getTypeErrorMessages();
for(String error : errors) {
System.out.println(error);
}
errors = result.getWarningMessages();
for(String error : errors) {
System.out.println(error);
}
errors = result.getTypeWarningMessages();
for(String error : errors) {
System.out.println(error);
}
}
assertTrue(!result.hasError());
}