/JUnitTesting

This Repository is all about the JUnit Test in Spring boot and Junit 5

Primary LanguageJava

  • New In JUnit 5

    • Annotations

      • @Nested
      • @RepeatedTest
    • Test Types

      • image.png
  • Difference between JUnit4 and JUnit5

    • image.png
  • Mocking Frameworks

1. Mokito
    - Mock final method using mockito-inline
    - But private method can't be mock
    - No mocks for final or static methods, and for constructors, solution for this problem is using
        -  **Power Mock**

Mockito class Diagram image.png

2. JMockit
3. EassyMock

Mokito Cheat sheet

image.png