[teiid-dev] 2 Tests fails on windows while building Teiid 7.5 Final from source

Sanjay Chaudhuri email2sanjayc at gmail.com
Sat Sep 17 00:49:18 EDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/teiid-dev/attachments/20110916/7dee1063/attachment.html 


More information about the teiid-dev mailing list