JUnit2 [JUnit] Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operatin.. Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet: In this case, use RequestContextListen.. 2021. 7. 28. [JUnit] org.mockito.exceptions.misusing.UnnecessaryStubbingException org.mockito.exceptions.misusing.UnnecessaryStubbingException: Unnecessary stubbings detected. Clean & maintainable test code requires zero unnecessary code. Following stubbings are unnecessary (click to navigate to relevant line of code): 1. -> at [FQCN].MyServiceTest.setUp(MyServiceTest.java:43) Please remove unnecessary stubbings or use 'lenient' strictness. More info: javadoc for UnnecessaryS.. 2021. 7. 26. 이전 1 다음