JUnit is an open-source unit testing framework for the Java programming language. It is one of the most popular frameworks used for writing and running repeatable tests in Java. JUnit has been important in the development of test-driven development.
00:00:00 - Introduction
00:01:49 - Testing and Unit testing
00:09:22 - Need of Junit 5 (Testing Framework)
00:19:31 - Maven project for Junit
00:29:22 - Running First Junit Test
00:33:35 - Junit Test without Maven
00:40:14 - Writing Test with JUnit5 without Maven
00:46:33 - @Test Annotation
00:51:38 - Assertions
00:55:11 - Write Test then Code
01:06:49 - JUnit5 Maven project setup
01:16:14 - surefire plugin integration for maven project
01:20:40 - More on assertEquals() method
01:25:46 - Assertion over an array
01:32:29 - Testing Exception with try-catch and assertThrows() method
01:44:58 - Testing performance with assertTimeout() and timeout attribute
01:51:16 - @BeforeEach and @AfterEach
02:00:46 - @BeforeAll and @AfterAll
02:06:30 - TestInstance Behavior
#junit #testing
Check out our courses:
Java Full Stack and Spring AI - https://go.telusko.com/JavaSpringAI
Coupon: TELUSKO10 (10% Discount)
DevOps with AWS: From Basics to Mastery : https://go.telusko.com/DevOpsAWS
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : https://go.telusko.com/masterjava
Coupon: TELUSKO20 (20% Discount)
For More Queries WhatsApp or Call on : +919008963671
Udemy Courses:
Spring: https://go.telusko.com/udemyteluskospring
Java:- https://go.telusko.com/udemyteluskojava
Java Spring:- https://go.telusko.com/Udemyjavaspring
Java For Programmers:- https://go.telusko.com/javaProgrammers
Python : https://go.telusko.com/udemyteluskopython
Git : https://go.telusko.com/udemyteluskogit
Docker : https://go.telusko.com/udemyteluskodocker
website : https://courses.telusko.com/
Instagram : https://www.instagram.com/navinreddyofficial/
Linkedin : https://in.linkedin.com/in/navinreddy20
TELUSKO Android App : https://bit.ly/TeluskoApp
TELUSKO IOS App : https://apple.co/3SsgmU2
Discord : https://discord.gg/D8hWe9BqfF