java.lang.IllegalStateException: no last call on a mock available

jayway.com | 4 months ago
  1. 0

    Mocking static methods in Java system classes - Jayway

    jayway.com | 8 months ago
    java.lang.IllegalStateException: no last call on a mock available
  2. 0

    Mocking static methods in Java system classes - Jayway

    jayway.com | 4 months ago
    java.lang.IllegalStateException: no last call on a mock available
  3. 0

    Getting "No last call on a mock available" error while trying to mock a private method using PowerMock

    Stack Overflow | 3 years ago | Harshit Agrawal
    java.lang.IllegalStateException: no last call on a mock available
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Mocking InetAddress - how to mock getting a new local address?

    Google Groups | 6 years ago | Martin
    java.lang.IllegalStateException: no last call on a mock available

    1 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.IllegalStateException

      no last call on a mock available

      at org.easymock.EasyMock.getControlForLastCall()
    2. EasyMock
      EasyMock.expectLastCall
      1. org.easymock.EasyMock.getControlForLastCall(EasyMock.java:521)
      2. org.easymock.EasyMock.expectLastCall(EasyMock.java:512)
      2 frames
    3. powermock-api-easymock
      PowerMock.expectPrivate
      1. org.powermock.api.easymock.PowerMock.doExpectPrivate(PowerMock.java:2247)
      2. org.powermock.api.easymock.PowerMock.expectPrivate(PowerMock.java:1409)
      2 frames