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 */>

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Harry Cummings, 1 year ago
Multi-line string inserted incorrectly expected:<...-line comment line 1[ -- line 2' ] /* line 3 */> but was:<...-line comment line 1[ -- line 2'] /* line 3 */>
via Hibernate JIRA by Harry Cummings, 1 year ago
Multi-line string inserted incorrectly expected:<...-line comment line 1[ -- line 2' ] /* line 3 */> but was:<...-line comment line 1[ -- line 2'] /* line 3 */>
via Hibernate JIRA by Carsten Hammer, 11 months ago
Multi-line string inserted incorrectly expected:&lt;...-line comment line 1[ -- line 2' ] /* line 3 */&gt; but was:&lt;...-line comment line 1[ -- line 2'] /* line 3 */&gt;
via GitHub by manuelfiorelli
, 1 year ago
expected:<[Content is not allowed in prolog]. [line 1, column 1]> but was:<[Il contenuto non è consentito nel prologo]. [line 1, column 1]>
via GitHub by wildfly-ci
, 1 year ago
expected:<[test]> but was:<[undefined]>
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.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)

Users with the same issue

Once, 2 months ago
3 times, 4 months ago
2 times, 6 months ago
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
287 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.