//Compare the generated Java type against the one generated by wscompile
String fname = "ElemAttribRef.java";
File file2 = createResourceFile(genPath + "/org/jboss/ws/types/" + fname);
File file1 = getResourceFile("tools/xsd-java-checker/wscompile/references/" + fname);
JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
assertTrue("Source Files Match::ElemAttribRef.java::", sc.validate());
sc.validateImports();
//Compare the generated Java type against the one generated by wscompile
fname = "Address.java";
file2 = createResourceFile( genPath + "/org/jboss/ws/types/" + fname);
file1 = getResourceFile("tools/xsd-java-checker/wscompile/references/" + fname);
sc = new JBossSourceComparator(file1, file2);
assertTrue("Source Files Match::Address.java::", sc.validate());
sc.validateImports();
//Compare the generated Java type against the one generated by wscompile
fname = "Employee.java";
file2 = createResourceFile(genPath + "/org/jboss/ws/types/" + fname);
file1 = getResourceFile("tools/xsd-java-checker/wscompile/references/" + fname);
sc = new JBossSourceComparator(file1, file2);
assertTrue("Source Files Match:Employee.java::", sc.validate());
sc.validateImports();
}