We're updating the issue view to help you get more done. 

MultiLineImportFileTest failing on some platforms

Description

A clean checkout on Windows results in two test failures. They're actually both the same test; it just runs twice (in a base class and a derived class):

CommandExtractorServiceTest. testImportFile
MultiLineImportFileTest. testImportFile

The full test output is:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 org.junit.ComparisonFailure: Multi-line string inserted incorrectly expected:<...-line comment line 1[ -- line 2' ] /* line 3 */> but was:<...-line comment line 1[ -- line 2'] /* line 3 */> at org.junit.Assert.assertEquals(Assert.java:125) at org.hibernate.test.fileimport.MultiLineImportFileTest.testImportFile(MultiLineImportFileTest.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:63) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:62)

This isn't a problem on the CI server, but I'm not the only person to encounter it. See, for example, this comment

I've fixed this locally myself. Pull request coming shortly...

Environment

master branch (which I believe is 4.3.0.Beta3) on Windows 7 Enterprise

Status

Assignee

Brett Meyer

Reporter

Harry Cummings

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.3.0.Beta3

Priority

Minor