Mockito: mockStatic is underfined
No matter what I try I get the error "mockStatic(Class<FacesContext>) is undefined for the type TestMainPage". I've tried several differnet combinations of dependencies. I'm using Eclipse and Maven. Here is what the dependency section of my POM currently looks like:
Here is my test code:
What am I missing? Could this be an Eclipse issue, a Maven issue, a Build Path issue? What else should I try?
3 Replies
⌛
This post has been reserved for your question.
Hey @AgentMime! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Never mind, I think I fixed it. One of the other projects was using a different version of Maven and that was causing problems for some reason
Post Closed
This post has been closed by <@406648669748592650>.