java.lang.IllegalArgumentException: temp.ClassWithStaticMethod is not an interface

jayway.com | 4 months ago
  1. 0

    Mocking static methods in Java system classes - Jayway

    jayway.com | 9 months ago
    java.lang.IllegalArgumentException: temp.ClassWithStaticMethod is not an interface
  2. 0

    Mocking static methods in Java system classes - Jayway

    jayway.com | 4 months ago
    java.lang.IllegalArgumentException: temp.ClassWithStaticMethod is not an interface
  3. 0

    mock final class: powermock + easymock + testng

    Stack Overflow | 6 years ago | Atul
    java.lang.IllegalArgumentException: MyFinalClass is not an interface
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    testing final class with easymock and testng

    Google Groups | 6 years ago | Atul
    java.lang.IllegalArgumentException: MyFinalClass is not an interface
  6. 0

    Error mocking final class with static method with JUnit 4.x and EasyMock

    Google Groups | 6 years ago | Kartik Kumar
    java.lang.IllegalArgumentException: com.teracent.partnerfetch.common.Partner 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

      temp.ClassWithStaticMethod 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:24)
      2. org.easymock.internal.MocksControl.createMock(MocksControl.java:51)
      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:2163)
      3. org.powermock.api.easymock.PowerMock.mockStatic(PowerMock.java:287)
      3 frames
    5. temp
      MockStaticExampleTest1.MockStaticMethodToReturnSix
      1. temp.MockStaticExampleTest1.MockStaticMethodToReturnSix(MockStaticExampleTest1.java:17)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    7. JUnit
      TestMethod.invoke
      1. org.junit.internal.runners.TestMethod.invoke(TestMethod.java:66)
      1 frame
    8. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:307)
      1 frame
    9. JUnit
      MethodRoadie.runBeforesThenTestThenAfters
      1. org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86)
      2. org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:94)
      2 frames
    10. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:294)
      2. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:112)
      3. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:73)
      4. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:282)
      4 frames
    11. JUnit
      MethodRoadie.run
      1. org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84)
      2. org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)
      2 frames
    12. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$1.run
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:207)
      2. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:146)
      3. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:120)
      3 frames
    13. JUnit
      ClassRoadie.runProtected
      1. org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
      2. org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
      2 frames
    14. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl.run
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:118)
      1 frame
    15. powermock-module-junit4-common
      AbstractCommonPowerMockRunner.run
      1. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:102)
      2. org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)
      2 frames
    16. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      1 frame
    17. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      5 frames