You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building the project on Windows, the test SmokeTest.shouldRunOnExampleData is failing because two compared files do not have the same line endings. The error is:
Running il.ac.idc.jdt.SmokeTest
Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNG652Configurator@17d10166
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.696 sec <<< FAILURE!
shouldRunOnExampleData(il.ac.idc.jdt.SmokeTest) Time elapsed: 0.231 sec <<< FAILURE!
java.lang.AssertionError: t1_1000.tsin trangulation is correct for smf
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:26)
at il.ac.idc.jdt.SmokeTest.shouldRunOnExampleData(SmokeTest.java:28)
Results :
Failed tests: shouldRunOnExampleData(il.ac.idc.jdt.SmokeTest): t1_1000.tsin trangulation is correct for smf
This happens because the control files inside the folder jzy3d-jdt-core\src\test\resources\outputs have Unix line endings (\n) when the created temporary files have Windows line-endings (\r\n).
A possible solution is to use IOUtils.contentEqualsIgnoreEOL inside this test (and giving it a Reader, by wrapping the InputStream with a InputStreamReader) instead of IOUtils.contentEquals.
When building the project on Windows, the test
SmokeTest.shouldRunOnExampleData
is failing because two compared files do not have the same line endings. The error is:This happens because the control files inside the folder
jzy3d-jdt-core\src\test\resources\outputs
have Unix line endings (\n
) when the created temporary files have Windows line-endings (\r\n
).A possible solution is to use
IOUtils.contentEqualsIgnoreEOL
inside this test (and giving it aReader
, by wrapping theInputStream
with aInputStreamReader
) instead ofIOUtils.contentEquals
.This was brought up in a Stack Overflow question: http://stackoverflow.com/questions/34766439/failure-to-execute-goal-maven-surefire-plugin-on-child-module-for-jzy3d-program
The text was updated successfully, but these errors were encountered: