org.junit.ComparisonFailure: expected:<Hello World![]> but was:<Hello World![ ]>

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 coderanch.com by Unknown author, 1 year ago
expected:<Hello World![]> but was:<Hello World![ ]>
via Coderanch by Edmund Wong, 1 year ago
expected:<Hello World![]> but was:<Hello World![ ]>
via GitHub by GoogleCodeExporter
, 2 years ago
expected:<[Hello World]> but was:<[]>
via GitHub by wildfly-ci
, 1 year ago
expected:<[1]> but was:<[0]>
org.junit.ComparisonFailure: expected:<Hello World![]> but was:<Hello World![ ]>
at org.junit.Assert.assertEquals(Assert.java:125)
at org.junit.Assert.assertEquals(Assert.java:147)
at undefined.HelloWorldTest.main(HelloWorldTest.java:24)

Users with the same issue

3 times, 4 months ago
Once, 2 months ago
2 times, 6 months ago
2 times, 2 months ago
7 times, 7 months ago
288 more bugmates

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