TestDataPathTest fails with path resolution error
Created by: jayjaybillings
TestDataPathTest.testResolveWithOverridenDefault:74 expected: <\home\test\test_data\test> but was: <\home\test\test_data/test>
This looks like the test is hardwired to expect test_data/test
with an actual /
instead of separator. @dbluhm will you have a look to help confirm the problem?
Full error on Windows 10:
[INFO] Running org.eclipse.ice.tests.util.data.TestDataPathTest
[ERROR] Tests run: 17, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.021 s <<< FAILURE! - in org.eclipse.ice.tests.util.data.TestDataPathTest
[ERROR] testExistsPath Time elapsed: 0.006 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
at org.eclipse.ice.tests.util.data.TestDataPathTest.testExistsPath(TestDataPathTest.java:127)
[ERROR] testResolve Time elapsed: 0.001 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <C:\Users\jayjaybillings\ICETests\test> but was: <C:\Users\jayjaybillings\ICETests/test>
at org.eclipse.ice.tests.util.data.TestDataPathTest.testResolve(TestDataPathTest.java:62)
[ERROR] testExistsString Time elapsed: 0.001 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
at org.eclipse.ice.tests.util.data.TestDataPathTest.testExistsString(TestDataPathTest.java:117)
[ERROR] testResolveWithOverridenDefault Time elapsed: 0.001 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <\home\test\test_data\test> but was: <\home\test\test_data/test>
at org.eclipse.ice.tests.util.data.TestDataPathTest.testResolveWithOverridenDefault(TestDataPathTest.java:74)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TestDataPathTest.testExistsPath:127 expected: <true> but was: <false>
[ERROR] TestDataPathTest.testExistsString:117 expected: <true> but was: <false>
[ERROR] TestDataPathTest.testResolve:62 expected: <C:\Users\jayjaybillings\ICETests\test> but was: <C:\Users\jayjaybillings\ICETests/test>
[ERROR] TestDataPathTest.testResolveWithOverridenDefault:74 expected: <\home\test\test_data\test> but was: <\home\test\test_data/test>
[INFO]
[ERROR] Tests run: 18, Failures: 4, Errors: 0, Skipped: 0