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

petrikainulainen.net | 2 days ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Unit Testing of Spring MVC Controllers: REST API

    petrikainulainen.net | 8 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 | 2 days 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