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

petrikainulainen.net | 1 week ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Unit Testing of Spring MVC Controllers: REST API

    petrikainulainen.net | 7 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 week 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