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


Solutions on the web384

Solution icon of github
via GitHub by davido
, 9 months ago
Expected: iterable containing ["ec40f9121202be3508b4f5ab7b0a511d3bdcf9d9"] but: item 0: was "17327e726739c711762c2e4f2edea0e3ad24d9f3.metadata"

Solution icon of stackoverflow
Expected: iterable containing [<[Item{name=iPhone}, Item{name=Skateboard}]>] but: item 0: was <Item{name=iPhone}>

Solution icon of github
via GitHub by hypery2k
, 1 year ago
Expected: iterable containing ["./imgs/image.png"] but: item 0: was ".\imgs/image.png"

Solution icon of github
Expected: iterable containing [<[is "str0", is "str1", is "str2"]>] but: item 0: was "str0"

Solution icon of stackoverflow
Expected: iterable containing [with toString() "c"] but: item 0: toString() was "a"

Solution icon of github
via GitHub by jvalkeal
, 1 year ago
Expected: iterable containing [<ERROR>, <MANUAL>] but: No item matched: <MANUAL>

Solution icon of github
via GitHub by jamesward
, 10 months ago
Expected: iterable containing ["META-INF/resources/webjars/third_party/1.5.2/file.js", "META-INF/resources/myapp/app.js"] but: item 0: was "META-INF/resources/myapp/app.js"

Solution icon of stackoverflow
Expected: iterable containing [not null] but: Not matched: "asda"

Solution icon of stackoverflow
via Stack Overflow by kism3t
, 1 year ago
Expected: iterable containing [hasProperty("name", is "paul")] but: Not matched: <MyItem@4e08711f>

Solution icon of stackoverflow
via Stack Overflow by Frank
, 8 months ago
JSON path "$.links[0].href" Expected: a collection containing "" but: was "http://localhost/items/001"

Stack trace

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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

4 times, 3 days ago
3 times, 1 week ago
3 times, 1 month ago
Once, 1 month ago
2 times, 3 months ago
17 more bugmates