-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The import org.junit cannot be resolved (VSCode) #926
Comments
The JUnit dependency defined in pom.xml is JUnit 4, and the |
Thanks for comment jdneo! I don't mind which release it would be, so I downloaded junit-4.11 to a folder included in Windows "Environmental Variables". Meanwhile I reset "settings.json" file, and don't know whether I should specify the path to junit .jar there, and if yes how to do it? Restarted VSCode, but it still doesn't work. Can you please bear with me, solution is probably very simple, but I spent hours searching for it. |
This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further. |
The issue, I believe, is that you need to make sure the file is under the test folder. |
Yes, its work for me. Thank you. Pascal
Java import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; @SpringBootTest @test |
I can't use JUnit test framework with VSCode, get message "The import org.junit cannot be resolved". I tried:
Environment
Steps To Reproduce
Full "project" available here: https://github.com/cybersinke/programi
(I am new to GitHub and I probably didn't document this issue properly. I uploaded the files manually.)
Current Result
The import org.junit cannot be resolved.
Expected Result
My understanding is that the extensions I installed should enable very simple use of junit, i.e. my code above should work?
Additional Informations
The text was updated successfully, but these errors were encountered: