java.lang.AssertionError: Expected: iterable containing ["ec40f9121202be3508b4f5ab7b0a511d3bdcf9d9"] but: item 0: was "17327e726739c711762c2e4f2edea0e3ad24d9f3.metadata"

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 davido
, 11 months ago
Expected: iterable containing ["ec40f9121202be3508b4f5ab7b0a511d3bdcf9d9"] but: item 0: was "17327e726739c711762c2e4f2edea0e3ad24d9f3.metadata"
via Stack Overflow by dev_android
, 7 months ago
Expected: an instance of com.kaushik.myredmart.adapter.ProductAdapter but: null
via GitHub by maggu2810
, 1 year ago
Expected: is null but: was <org.eclipse.smarthome.binding.hue.handler.HueBridgeHandler@7f188fd>
via Stack Overflow by JulioAragao
, 2 years ago
Expected: iterable containing [with toString() "c"] but: item 0: toString() was "a"
via Stack Overflow by user3923124
, 2 years ago
Expected: a collection containing null but:
via Stack Overflow by Jorge Z
, 2 years ago
Expected: iterable over [<{id=x}>] in any order but: Not matched: <{id=x}>
java.lang.AssertionError: Expected: iterable containing ["ec40f9121202be3508b4f5ab7b0a511d3bdcf9d9"] but: item 0: was "17327e726739c711762c2e4f2edea0e3ad24d9f3.metadata"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.Assert.assertThat(Assert.java:923)
at com.facebook.buck.artifact_cache.DirArtifactCacheTest.testCacheStoresAndFetchHits(DirArtifactCacheTest.java:304)
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.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at com.facebook.buck.testrunner.SameThreadFailOnTimeout.lambda$new$0(SameThreadFailOnTimeout.java:44)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

16 times, 1 hour ago
Once, 2 days ago
2 times, 4 weeks ago
3 times, 1 month ago
2 times, 1 month ago

Write tip

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