//Compare the generated Java type against the one generated by wscompile
String fname = "Teacher.java";
File file2 = createResourceFile(genPath + "/groups" + "/org/jboss/ws/types/" + fname);
File file1 = getResourceFile("tools/xsd-java-checker/wscompile/complextypes/groups/" + fname);
JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
assertTrue("Source Files Match:", sc.validate());
sc.validateImports();
}
private void generateJavaSource( String filename, File dir, String packageName,
boolean createPackageDir) throws Exception