/real-state-java

JUnit Practical Examples

Primary LanguageJava

Nest Logo

A simple Java app for practical purposes using JUnit

Description

Java and JUnit 5 Practical examples.

Below are the topics implemented:

Basics:

  1. Test exceptions
  2. Test with multiple assertions
  3. Test null values
  4. Test array equality
  5. @BeforeEach and @AfterEach
  6. @BeforeAll and @AfterAll

More Advanced Concepts:

  1. Parameterized Tests - ValueSource
  2. Parameterized Tests - CsvSource
  3. Parameterized Tests - CsvFileSource
  4. Repeated Test
  5. Test performance
  6. Assumptions
  7. Organize your code with @Nested
  8. Other annotations