java.lang.AssertionError: Unexpected method call List.size(): List.get(1): expected: 1, actual: 0 List.size(): expected: 1, actual: 2

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 Stack Overflow by Ad Infinitum
, 1 year ago
Unexpected method call List.size(): List.get(1): expected: 1, actual: 0 List.size(): expected: 1, actual: 2
via Stack Overflow by Btla Deva
, 1 year ago
via clearstacknow.com by Unknown author, 2 years ago
via Stack Overflow by user2359634
, 2 years ago
Unexpected method call getName(): setName("abc"): expected: 1, actual: 0
via Stack Overflow by jtoepfer
, 2 years ago
Unexpected method call findByNamedQuery("def.query"): findByNamedQuery("abc.query", 1): expected: 1, actual: 0
via Coderanch by Lyane Foly, 11 months ago
Unexpected method call saveFile(java.io.FileOutputStream@1d63e39): saveFile(java.io.FileOutputStream@192b996): expected: 1, actual: 0
java.lang.AssertionError: Unexpected method call List.size(): List.get(1): expected: 1, actual: 0 List.size(): expected: 1, actual: 2
at org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:44)
at org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:94)
at com.sun.proxy.$Proxy7.size(Unknown Source)
at de.psi.passage3.auslieferung.allg.gui.status.CasBarUserConfigurationArrangementsTest.testCreateIdealConf(CasBarUserConfigurationArrangementsTest.java:113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
1 more bugmates

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