Тёмный

JUnit 5 in IntelliJ Java Project: Java Programming 

Brian Fraser
Подписаться 29 тыс.
Просмотров 65 тыс.
50% 1

How to make a Java project in IntelliJ which tests a simple (Plain Old Java) class with JUnit 5.

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@orangetoms
@orangetoms 4 года назад
Thank you Brian for clearly explaining the steps to creating Junits with a very simple Java program.
@pagm.tech1
@pagm.tech1 3 года назад
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
@ylmaznaciaslan9508
@ylmaznaciaslan9508 2 года назад
Finally, god thanks finally! someone explains the logic with meaningful example.
@Maya_8
@Maya_8 2 года назад
Thankyou Sir for explaining in such a smooth and easy way.
@rohelarahman9170
@rohelarahman9170 2 года назад
Thanks a lot. This video really helped me in configuring my intelliJ
@jerrypie
@jerrypie 3 года назад
Thank you!! The IntelliJ website said to do it in a way more complicated way.
@sergeyareshchenko5534
@sergeyareshchenko5534 3 года назад
Thank you! That was super easy and extremely helpful!
@kentsang9376
@kentsang9376 2 года назад
Thank you very much for your video, I can finally run my unit test.
@mrpunch_777_
@mrpunch_777_ 2 года назад
Right to the point! Good job.
@fkyduckwarsaw691
@fkyduckwarsaw691 3 года назад
Thx Brian! Useful guide!
@nabilfaiz5279
@nabilfaiz5279 4 года назад
can we test input from console using Junit?
@onated2
@onated2 3 года назад
Exactly what i needed
@Duderantula
@Duderantula 3 года назад
Very good video, thank you.
@brennanmanion2905
@brennanmanion2905 4 года назад
Great video
@paulamercedesalonsojalil1594
@paulamercedesalonsojalil1594 2 года назад
Thank you so much!
@tandrew468
@tandrew468 3 года назад
This is BRILLIANT !!! My Lectures can't explain SH*T
@paulmachong3575
@paulmachong3575 Год назад
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
@ac4694
@ac4694 3 года назад
It is all I needed and even more. Thank you!
@geraldvillarroel5936
@geraldvillarroel5936 4 года назад
Great video, could you make one tutorial about mock objects with mockito please. ✌️
@nethranjalitharushika447
@nethranjalitharushika447 2 месяца назад
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.
@WiiHack
@WiiHack 3 года назад
thanks, exactly what I was searching for
@joegracey
@joegracey 4 года назад
Thank you for using a dark theme.
@paulonietto7316
@paulonietto7316 Год назад
Thank you. All the others tutorials only use Maven projects
@ciscoccnpmcse
@ciscoccnpmcse 3 года назад
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.
@rektdedrip
@rektdedrip 2 года назад
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!
@ehizuelenabhulimen8433
@ehizuelenabhulimen8433 3 года назад
Why use such a complex, multi-line code example to illustrate junit. So many unnecessary lines of code. Its like using a space rocket as an example of a man made flying object
@LordPunckyii
@LordPunckyii 2 года назад
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!
@vasanth-F
@vasanth-F Год назад
thank you
@nightstalker5097
@nightstalker5097 2 года назад
what dependencies you use how you add them nothing of that? if you press alt+enter create test does not show now why?
@mgamingyoutube
@mgamingyoutube 3 года назад
"Create Test" is not showing upon "Alt + Enter". Please help.
@svetlintrapkov3333
@svetlintrapkov3333 2 года назад
Simply THE BEST , and THANK YOU FOR POSTING
@thierry9592
@thierry9592 Год назад
finally, a normal tutorial to do this! thank you very much
@ViZzYDesignZ
@ViZzYDesignZ 4 года назад
how do i install junit 5 ?
@batesinheritance
@batesinheritance 2 года назад
Thank you so much. This the best.
@mirkodemagistris2803
@mirkodemagistris2803 4 года назад
Control+Shift+R on Mac
@parushisharma4527
@parushisharma4527 3 года назад
Very nice concept clearity
@sergei-aleinikov
@sergei-aleinikov 3 года назад
Thank you, Brian!
@amirrezaasdaghi
@amirrezaasdaghi 3 года назад
thank you so much
@katlehomotloung8977
@katlehomotloung8977 3 года назад
Great stuff
@breakthecode119
@breakthecode119 3 года назад
Thanks
@casualuser2408
@casualuser2408 3 года назад
If 'Create Test' is not showing up for someone when doing "alt enter" on the method name try to do "ctrl alt T "intstead.
@kilianmelcher3811
@kilianmelcher3811 3 года назад
You have to Create Test on the Class, not on the method
Далее
Introduction to JUnit 5
17:34
Просмотров 11 тыс.
Using Git in IntelliJ
19:58
Просмотров 275 тыс.
How to plan your Java learning path - Brain Bytes
16:46
JUnit 4 with IntelliJ: A quick introduction
11:50
Просмотров 146 тыс.
Java snake game 🐍
43:30
Просмотров 1,5 млн
Java Testing - JUnit 5 Crash Course
26:05
Просмотров 334 тыс.