While building Teiid 7.5 Final from source in windows, I found couple of
tests failed on Windows:
1.
*testHasCorrectExtension(org.teiid.rhq.plugin.util.TestDeploymentUtils)
*>> assertFalse(DeploymentUtils.hasCorrectExtension("My.VDB", null));
FAILS,
because the expression
new File(extension).equals(new File(expectedExtension)) on line 49 in
org.teiid.rhq.plugin.util.DeploymentUtils.hasCorrectExtension(...) returns
TRUE on windows for the strings '.VDB" and '.vdb'
2.
*testRelativeSchemas(org.teiid.query.metadata.TestTransformationMetadata)
*>> assertEquals(1, tm.getXMLSchemas(tm.getGroupID("x1.doc")).size());
FAILS, because the variable
'parentPath' in line 826 for function getXMLSchemas(...) in
org.teiid.query.metadata.TransformationMetadata should be modified to using
'/' instead of '\' to take of windows platform as well using:
if (File.separatorChar != '/') {
parentPath = parentPath.replace(File.separatorChar, '/');
}
Thanks
Sanjay