Question on ScmTckTestCase

View: New views
1 Messages — Rating Filter:   Alert me  

Question on ScmTckTestCase

by Subhash Gopalakrishnan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to write some TCK test cases for a new provider and I keep hitting an error at ScmTestCase.assertFile(). As far as I can see, this method asserts that the contents of a file equals the file's name (?). And ScmTckTestCase is using this method in setUp() to assert on '/pom.xml' whose content will definitely not match the filename.

Is my understanding wrong? What should I do to get rid of this error?

junit.framework.ComparisonFailure: The file doesn't contain the expected contents. File: C:\Temp\pom.xml expected:<[/pom.xml]> but was:<[<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">.. </project>]>

Thanks,
Subhash