com.etotem.cfc.controller.ProductControllerTest.txt 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. -------------------------------------------------------------------------------
  2. Test set: com.etotem.cfc.controller.ProductControllerTest
  3. -------------------------------------------------------------------------------
  4. Tests run: 16, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 38.721 s <<< FAILURE! - in com.etotem.cfc.controller.ProductControllerTest
  5. shelve_PublishSuccess Time elapsed: 0.033 s <<< ERROR!
  6. org.mockito.exceptions.misusing.InvalidUseOfMatchersException:
  7. Invalid use of argument matchers!
  8. 3 matchers expected, 1 recorded:
  9. -> at com.etotem.cfc.controller.ProductControllerTest.shelve_PublishSuccess(ProductControllerTest.java:289)
  10. This exception may occur if matchers are combined with raw values:
  11. //incorrect:
  12. someMethod(any(), "raw String");
  13. When using matchers, all arguments have to be provided by matchers.
  14. For example:
  15. //correct:
  16. someMethod(any(), eq("String by matcher"));
  17. For more info see javadoc for Matchers class.
  18. at com.etotem.cfc.controller.ProductControllerTest.shelve_PublishSuccess(ProductControllerTest.java:289)
  19. shelve_NotOwner Time elapsed: 0.012 s <<< ERROR!
  20. org.mockito.exceptions.misusing.InvalidUseOfMatchersException:
  21. Invalid use of argument matchers!
  22. 3 matchers expected, 1 recorded:
  23. -> at com.etotem.cfc.controller.ProductControllerTest.shelve_NotOwner(ProductControllerTest.java:319)
  24. This exception may occur if matchers are combined with raw values:
  25. //incorrect:
  26. someMethod(any(), "raw String");
  27. When using matchers, all arguments have to be provided by matchers.
  28. For example:
  29. //correct:
  30. someMethod(any(), eq("String by matcher"));
  31. For more info see javadoc for Matchers class.
  32. at com.etotem.cfc.controller.ProductControllerTest.shelve_NotOwner(ProductControllerTest.java:319)
  33. shelve_UnshelveSuccess Time elapsed: 0.012 s <<< ERROR!
  34. org.mockito.exceptions.misusing.InvalidUseOfMatchersException:
  35. Invalid use of argument matchers!
  36. 3 matchers expected, 1 recorded:
  37. -> at com.etotem.cfc.controller.ProductControllerTest.shelve_UnshelveSuccess(ProductControllerTest.java:304)
  38. This exception may occur if matchers are combined with raw values:
  39. //incorrect:
  40. someMethod(any(), "raw String");
  41. When using matchers, all arguments have to be provided by matchers.
  42. For example:
  43. //correct:
  44. someMethod(any(), eq("String by matcher"));
  45. For more info see javadoc for Matchers class.
  46. at com.etotem.cfc.controller.ProductControllerTest.shelve_UnshelveSuccess(ProductControllerTest.java:304)