Skip to content

Hacking Code - A lot of code examples about Java, Erlang, Golang, Docker, Mockito and many more

Notifications You must be signed in to change notification settings

alex-gama/craft-coder.github.io

Repository files navigation

Craft Coder - Mockito Framework by Examples

Hello!

The main goal of this project is share all the awesome features in Mockito Framework!

If you're new, this is the best place to learn about Mockito

If you're an expert, this is the best place to do some overview and keep up to date :)

Mockito Framework - Crafting Code

If you didn't visit the site yet, run and access it!

You'll see a lot, a lot of code examples of how to use every Mockito feature!

This project is ambitious and will have more examples than the official documentation \o/

Shut up and show me the code!

Let's what you will learn (or revisit) in this Project!

Configuring Your Test to Use Mockito

Behavior and Stubbing

Argument Matcher - Basic

Number of Interactions

Verifying mocks with Timeout

Verifying Particular Order

Stubbing Void Methods

Spying on Real Methods

Capturing Arguments with ArgumentCaptor

Partial Mock

Mock's Answer

Java 8 Lambda Support

Maintainer

This project is open source and was created with beer and music by @alexandregama

If you didn't understand some code or if you find some bug, please tell me or open a PR =D \o/

Keep in Touch =D

GitHub Twitter Linkedin Instagram About.me