Skip to content

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

Notifications You must be signed in to change notification settings

MostafijurJ/JUnitTesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • 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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages