org.junit.ComparisonFailure: expected:<host[]:999> but was:<host[/]:999>

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 GitHub by mtunique
, 1 year ago
expected:<host[]:999> but was:<host[/]:999>
via GitHub by angel9484
, 7 months ago
expected:<...e(cod=1, name=myName[, cur=null, des=des, otherName=other])> but was:<...e(cod=1, name=myName[2, cur=cur1, des=des1, otherName=other1])>
via GitHub by tdiesler
, 1 year ago
expected:<[Hello Kermit]> but was:<[]>
via syncope-user by Francesco Chicchiriccò, 6 months ago
expected:<[ws-target-resource-1]> but was:<[resource-testdb]>
via syncope-user by Francesco Chicchiriccò, 1 year ago
expected:<[ws-target-resource-1]> but was:<[resource-testdb]>
via Hibernate JIRA by Martin Šimka, 1 year ago
expected:<July 21, 1905 1[2]:00:00 AM EST> but was:<July 21, 1905 1[0]:00:00 AM EST>
org.junit.ComparisonFailure: expected:<host[]:999> but was:<host[/]:999>
at org.junit.Assert.assertEquals(
at org.junit.Assert.assertEquals(
at com.twitter.heron.spi.utils.NetworkUtilsTest.testGetInetSocketAddress(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.junit.internal.runners.MethodRoadie$
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(
at org.junit.internal.runners.MethodRoadie.runTest(
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(
at org.junit.internal.runners.ClassRoadie.runUnprotected(

Users with the same issue

6 times, 6 days ago
Once, 1 week ago
12 times, 1 week ago
2 times, 3 weeks ago
Once, 1 month ago

Write tip

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