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?

本文标签: