admin管理员组文章数量:1125578
I need to import Mockity into a Java eclipse project in order to run a test. I am getting an import error that I don't know how to solve. I follow all the prompts and go through the process as shown in the attached screenshots. Additionally, I already include Mockity in the build.gradle file as a dependency, so I don't know what else I'm missing.
Specifics:
My import line is import static org.mockito.Mockito.*;
In the gradle.build file, I have the line testImplementation 'org.mockito:mockito-core:5.0.0'
I get the error: The import org.mockito cannot be resolved
I then have the option to fix the import structure, which then opens the window in the screenshot. I have cut off part of it for privacy reasons, but it doesn't have any information outside of what I included.
Does anyone know why this might not be working?
本文标签:
版权声明:本文标题:java - Trouble importing mockity on eclipse - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736663985a1946563.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论