on-internet
← Community

No qualifying bean of type [org.springframework.test.web.servlet.MockMvc] found for dependency:

Stack Overflow ·

I am trying to run test cases on my spring controllers. I get the following error. No qualifying bean of type [org.springframework.test.web.servlet.MockMvc] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations After reading several QA's on SO, I got my build.gradle right. But now Im stuck at this point. The other questions on SO related to this did not help identify an issue with the code below. package test.controllers; import static org.hamcrest.Matchers.equalTo; import static org.springframework.test.web.servlet.res

Comments

Sign in or sign up to comment and upvote.

No comments yet.