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

Stack Overflow | Ad Infinitum | 5 months ago
  1. 0

    Create a list with EasyMock

    Stack Overflow | 5 months ago | Ad Infinitum
    java.lang.AssertionError: Unexpected method call List.size(): List.get(1): expected: 1, actual: 0 List.size(): expected: 1, actual: 2
  2. 0

    createMockAndExpectNew does not support collaborators with constructors with Array

    GitHub | 1 year ago | johanhaleby
    java.lang.AssertionError: Unexpected method call PersonService.create( EasyMock for class demo.org.powermock.examples.tutorial.domainmocking.domain.Person, demo.org.powermock.examples.tutorial.domainmocking.domain.BusinessMessages@ac1596): PersonService.create( EasyMock for class demo.org.powermock.examples.tutorial.domainmocking.domain.Person, EasyMock for class demo.org.powermock.examples.tutorial.domainmocking.domain.BusinessMessages): expected: 1, actual: 0
  3. 0

    EasyMock: AssertionError on comparing object with its clone

    Stack Overflow | 1 year ago | Bogdan Kobylinsky
    java.lang.AssertionError: Unexpected method call ICustomerDAO.getVersionStamps(-1, ["CustomerData", "UserData"], EasyMock for interface java.sql.Connection): ICustomerDAO.getVersionStamps(-1, ["CustomerData", "UserData"], EasyMock for interface java.sql.Connection): expected: 1, actual: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How mock internal method call with EasyMock and PowerMock? - ClearStackNow.com

    clearstacknow.com | 1 year ago
    java.lang.AssertionError: Unexpected method call Connection.isClosed():
  6. 0

    JUnit test fails with maven 3 / surefire when running many tests

    Stack Overflow | 1 year ago | Bernhard
    java.lang.AssertionError: Unexpected method call IUser.getUUID(): IUser.getUUID(): expected: 1, actual: 2 IUser.setUUID("someUUID"): expected: 1, actual: 0

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. EasyMock
      ObjectMethodsFilter.invoke
      1. org.easymock.internal.MockInvocationHandler.invoke(MockInvocationHandler.java:44)
      2. org.easymock.internal.ObjectMethodsFilter.invoke(ObjectMethodsFilter.java:94)
      2 frames
    3. com.sun.proxy
      $Proxy7.size
      1. com.sun.proxy.$Proxy7.size(Unknown Source)
      1 frame
    4. de.psi.passage3
      CasBarUserConfigurationArrangementsTest.testCreateIdealConf
      1. de.psi.passage3.auslieferung.allg.gui.status.CasBarUserConfigurationArrangementsTest.testCreateIdealConf(CasBarUserConfigurationArrangementsTest.java:113)
      1 frame
    5. Java RT
      NativeMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2 frames