java.lang.IllegalArgumentException: replica.java.lang.System$$PowerMock0 is not an interface

jayway.com | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Mocking static methods in Java system classes - Jayway

    jayway.com | 11 months ago
    java.lang.IllegalArgumentException: replica.java.lang.System$$PowerMock0 is not an interface
  2. 0

    Mocking static methods in Java system classes - Jayway

    jayway.com | 6 months ago
    java.lang.IllegalArgumentException: replica.java.lang.System$$PowerMock0 is not an interface
  3. 0

    Problem creating mock using PowerMock [Solved] (Testing forum at Coderanch)

    coderanch.com | 8 months ago
    java.lang.IllegalArgumentException: java.io.ByteArrayInputStream is not an interface
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem creating mock using PowerMock

    GitHub | 2 years ago | johanhaleby
    java.lang.IllegalArgumentException: java.io.ByteArrayInputStream is not an interface
  6. 0

    Problem creating mock using PowerMock

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.IllegalArgumentException: java.io.ByteArrayInputStream is not an interface

    17 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.IllegalArgumentException

      replica.java.lang.System$$PowerMock0 is not an interface

      at java.lang.reflect.Proxy.getProxyClass()
    2. Java RT
      Proxy.newProxyInstance
      1. java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
      2. java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
      2 frames
    3. EasyMock
      MocksControl.createMock
      1. org.easymock.internal.JavaProxyFactory.createProxy(JavaProxyFactory.java:12)
      2. org.easymock.internal.MocksControl.createMock(MocksControl.java:37)
      2 frames
    4. powermock-api-easymock
      PowerMock.mockStatic
      1. org.powermock.api.easymock.PowerMock.doCreateMock(PowerMock.java:2212)
      2. org.powermock.api.easymock.PowerMock.doMock(PowerMock.java:2134)
      3. org.powermock.api.easymock.PowerMock.mockStatic(PowerMock.java:287)
      3 frames