How do you write a test case in JUnit 5?

How do you write a test case in JUnit 5?

JUnit 5 test suites allow us to run different tests that are spread across different packages and test classes. JUnit 5 would be offering all these annotations for creating test suites. Leverage @Suite annotation and include junit-platform-suite module in your project dependencies for executing this test.