JUnit, a popular unit test framework in Java. In this tutorials, all examples are tested with JUnit 4.12
1. JUnit 4.x Examples
- Maven + JUnit + Hamcrest example
- Gradle + JUnit + Hamcrest example
- JUnit – Basic annotation examples
- JUnit – Expected Exceptions Test
- JUnit – Ignore a Test
- JUnit – Timeout Test
- JUnit – Suite Test, run multiple test cases
- JUnit – Parameterized Test
- JUnit – How to test a List
- JUnit – How to test a Map
- JUnit – Categories Test
- JUnit + Spring integration example
- JUnit – Run test in a particular order
- JUnit – Assert if a property exists in a class
- Intellij + Infinitest Continuous Testing
- Unit Test – What is Mocking? and Why?
- JUnit 4 Vs TestNG – Comparison (Deprecated)