Verify basic test execution and annotation differences between JUnit 4 and JUnit 5
Preconditions (2)
Step 1: Create a test class using JUnit 4 annotations
Step 2: Write a test method annotated with @Test that asserts 2 + 2 equals 4
Step 3: Run the JUnit 4 test and verify it passes
Step 4: Create a test class using JUnit 5 (Jupiter) annotations
Step 5: Write a test method annotated with @Test that asserts 2 + 2 equals 4
Step 6: Run the JUnit 5 test and verify it passes
Step 7: Observe differences in annotations such as @Before vs @BeforeEach and @After vs @AfterEach
Step 8: Observe that JUnit 5 supports @DisplayName for test methods
✅ Expected Result: Both JUnit 4 and JUnit 5 tests run successfully and pass. Differences in annotations and features like @DisplayName are observed.