org.junit.ComparisonFailure: expected:<host[]:999> but was:<host[/10.1.0.47]: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[/10.1.0.47]:999>
via GitHub by angel9484
, 5 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ò, 4 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[/10.1.0.47]:999>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at com.twitter.heron.spi.utils.NetworkUtilsTest.testGetInetSocketAddress(NetworkUtilsTest.java:275)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:88)
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:294)
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:127)
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:82)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:86)
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:207)
at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:146)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:33)
at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:106)
at com.google.testing.junit.runner.junit4.CancellableRequestFactory$CancellableRunner.run(CancellableRequestFactory.java:89)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
at com.google.testing.junit.runner.junit4.JUnit4Runner.run(JUnit4Runner.java:114)
at com.google.testing.junit.runner.BazelTestRunner.runTestsInSuite(BazelTestRunner.java:152)
at com.google.testing.junit.runner.BazelTestRunner.main(BazelTestRunner.java:91)

Users with the same issue

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

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