Skip to content

This is a simple maven project that implements different features of Mockito framework in simple, easy and understandable way. The project has been created for someone who wishes to understand how to use Mockito in their project. Mockito is an open source testing framework for Java released under the MIT License. The framework allows the creatio…

Notifications You must be signed in to change notification settings

bedmuthaapoorv/working-implementation-of-mockito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

working-implementation-of-mockito

This is a simple maven project that implements different features of Mockito framework in simple, easy and understandable way. The project has been created for someone who wishes to understand how to use Mockito in their project. Mockito is an open source testing framework for Java released under the MIT License. The framework allows the creation of mock objects in automated unit tests for the purpose of test-driven development or behavior-driven development.

Pre-requisites

  • Java8 or above
  • Maven
  • IDE (I recommend eclipse)

how to setup the project?

  • clone the project
  • open cmd inside the WorkingImplementationOfMockito folder
  • run the below command mvn clean install
  • you are good to go :)

how to use the project?

  • it is advised to understand the code while reading the JavaTpoint's Mockito Tutorial
  • start from src/main/java/PojoClasses -> these classes are the one's that we will be mocking and testing.
  • then look into src/test/java/TestingWithoutMockito to understand the limitations without mockito.
  • then move to src/test/java/TestingWithMockito to understand the benefits of Mockito as well as get hands on with code implementations
  • lastly move to src/test/java/MockitoWithAnnotations to understand how to use annotations in Mockito

Next Update:

  • A Very Brief and concise documentations covering all important points regarding mockito will be made available.

  • don't forget to star and share the project :)

About

This is a simple maven project that implements different features of Mockito framework in simple, easy and understandable way. The project has been created for someone who wishes to understand how to use Mockito in their project. Mockito is an open source testing framework for Java released under the MIT License. The framework allows the creatio…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages