java.lang.IllegalArgumentException: Matching real methods not found for the following mocks: com.example.dcsohl.TestTest$1#foo(int)

Stack Overflow | dcsohl | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    How to use JMockit MockUp for default interface method

    Stack Overflow | 8 months ago | dcsohl
    java.lang.IllegalArgumentException: Matching real methods not found for the following mocks: com.example.dcsohl.TestTest$1#foo(int)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Matching real methods not found for the following mocks: com.example.dcsohl.TestTest$1#foo(int)

      at com.example.dcsohl.TestTest$1.<init>()
    2. com.example.dcsohl
      TestTest.testtest
      1. com.example.dcsohl.TestTest$1.<init>(TestTest.java:29)
      2. com.example.dcsohl.TestTest.testtest(TestTest.java:29)
      2 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame