------------------------------------------------------------------------------- Test set: com.etotem.cfc.controller.ProductControllerTest ------------------------------------------------------------------------------- Tests run: 16, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 39.685 s <<< FAILURE! - in com.etotem.cfc.controller.ProductControllerTest shelve_PublishSuccess Time elapsed: 0.034 s <<< ERROR! org.mockito.exceptions.misusing.InvalidUseOfMatchersException: Invalid use of argument matchers! 3 matchers expected, 1 recorded: -> at com.etotem.cfc.controller.ProductControllerTest.shelve_PublishSuccess(ProductControllerTest.java:289) This exception may occur if matchers are combined with raw values: //incorrect: someMethod(any(), "raw String"); When using matchers, all arguments have to be provided by matchers. For example: //correct: someMethod(any(), eq("String by matcher")); For more info see javadoc for Matchers class. at com.etotem.cfc.controller.ProductControllerTest.shelve_PublishSuccess(ProductControllerTest.java:289) shelve_NotOwner Time elapsed: 0.01 s <<< ERROR! org.mockito.exceptions.misusing.InvalidUseOfMatchersException: Invalid use of argument matchers! 3 matchers expected, 1 recorded: -> at com.etotem.cfc.controller.ProductControllerTest.shelve_NotOwner(ProductControllerTest.java:319) This exception may occur if matchers are combined with raw values: //incorrect: someMethod(any(), "raw String"); When using matchers, all arguments have to be provided by matchers. For example: //correct: someMethod(any(), eq("String by matcher")); For more info see javadoc for Matchers class. at com.etotem.cfc.controller.ProductControllerTest.shelve_NotOwner(ProductControllerTest.java:319) shelve_UnshelveSuccess Time elapsed: 0.012 s <<< ERROR! org.mockito.exceptions.misusing.InvalidUseOfMatchersException: Invalid use of argument matchers! 3 matchers expected, 1 recorded: -> at com.etotem.cfc.controller.ProductControllerTest.shelve_UnshelveSuccess(ProductControllerTest.java:304) This exception may occur if matchers are combined with raw values: //incorrect: someMethod(any(), "raw String"); When using matchers, all arguments have to be provided by matchers. For example: //correct: someMethod(any(), eq("String by matcher")); For more info see javadoc for Matchers class. at com.etotem.cfc.controller.ProductControllerTest.shelve_UnshelveSuccess(ProductControllerTest.java:304)