JUnit 5 in IntelliJ Java Project: Java Programming

preview_player
Показать описание
How to make a Java project in IntelliJ which tests a simple (Plain Old Java) class with JUnit 5.
Рекомендации по теме
Комментарии
Автор

Thank you, man.
All other tutorials I found are based on the use of Maven or Gradle, but yours hits the spot about doing it for a plain project.
However, after following your instructions IntelliJ didn't give the option to add the JUnit library to the path; therefore, JUnit couldn't even be imported in my classes.
I could solve it by doing something similar (IntelliJ version 2020.2):
File -> project structure -> libraries
select 'new project library' (the '+' in the second column of the popup)
select the library to download from the Maven repository.
After that JUnit is ready to be used

pagm.tech
Автор

Thank you Brian for clearly explaining the steps to creating Junits with a very simple Java program.

orangetoms
Автор

Went through several videos and was almost fustrated cause I was looking for the basic starting point with basic examples I can relate to and easily understand within the shortest possible time. YOU HIT THE SPOT. THANKS A LOT

paulmachong
Автор

This is BRILLIANT !!! My Lectures can't explain SH*T

tandrew
Автор

Thankyou Sir for explaining in such a smooth and easy way.

Maya_
Автор

Finally, god thanks finally! someone explains the logic with meaningful example.

ylmaznaciaslan
Автор

Thank you so much for this simple tutorial! Every other video I found about unit testing used a dependency framework that I didn't care about or have the time to learn right now!

rektdedrip
Автор

It is all I needed and even more. Thank you!

ac
Автор

finally, a normal tutorial to do this! thank you very much

thierry
Автор

Thank you!! The IntelliJ website said to do it in a way more complicated way.

jerrypie
Автор

Simply THE BEST, and THANK YOU FOR POSTING

svetlintrapkov
Автор

and now I know how to use a test... :)) and if I forgot, I will brb because it's a saved video in Java play list now :D
Thank you Brian!

LordPunckyii
Автор

Thanks a lot. This video really helped me in configuring my intelliJ

rohelarahman
Автор

thanks, exactly what I was searching for

WiiHack
Автор

Thank you! That was super easy and extremely helpful!

sergeyareshchenko
Автор

Thank you soo much sir, this is perfect.i saw lot of videos to slove some problems i met, but this is perfect one .i sloved my problems very quickly .thank you so much again.

nethranjalitharushika
Автор

Thank you very much for your video, I can finally run my unit test.

kentsang
Автор

Brain, Thank you for your video. Finally, I leant unit test and code coverage. We need more videos from you. God bless you. I subscribed to your channel.

ciscoccnpmcse
Автор

Thank you. All the others tutorials only use Maven projects

paulonietto
Автор

can we test input from console using Junit?

nabilfaiz