What is JUnit and what are the mostly used Annotations

JUnit is a unit testing library.

@Test – is an Annotation to mark test method in a class to act like test.

@TestFactory – Annotation for creating test method on run time, done by creating ranodmized tests or tests from external data

@DisplayName – to make reports readable with repoet name

@Disabled – to skip junit tests

@BeforeAll/@BeforeEach – lofe cycle mthods meant to run before tests

@AfterAll/@AfterEach – method to do clean up/tear down, meant execute after tests

#shorts#JUnit#Annotations