org.mockito.exceptions.misusing.NotAMockException: Argument should be a mock, but is: class com.sun.proxy.$Proxy36

petrikainulainen.net | 1 month 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

    Unit Testing of Spring MVC Controllers: REST API

    petrikainulainen.net | 9 months ago
    org.mockito.exceptions.misusing.NotAMockException: Argument should be a mock, but is: class com.sun.proxy.$Proxy36
  2. 0

    Unit Testing of Spring MVC Controllers: REST API

    petrikainulainen.net | 1 month ago
    org.mockito.exceptions.misusing.NotAMockException: Argument should be a mock, but is: class com.sun.proxy.$Proxy36

    Root Cause Analysis

    1. org.mockito.exceptions.misusing.NotAMockException

      Argument should be a mock, but is: class com.sun.proxy.$Proxy36

      at com.travenion.controllers.customer.CustomerControllerTest.setup()
    2. com.travenion.controllers
      CustomerControllerTest.setup
      1. com.travenion.controllers.customer.CustomerControllerTest.setup(CustomerControllerTest.java:50)
      1 frame