---
title: "Discussion on \"Mockito CheatSheet: Tldr and Tips\" | Hashnode"
description: "Discussion on \"Mockito CheatSheet: Tldr and Tips\". These are some of the useful methods and classes provided by Mockito\n1. Mockito.mock()\nCreates a mock of any class. By default, it will return default value for methods and fields when not mocked.\nFor Example:\nPrimitive data types such as byte, short..."
url: "https://hashnode.com/posts/mockito-cheatsheet-tldr-and-tips/634713dd2541bedadecee052"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mockito CheatSheet: Tldr and Tips](https://blog.tejpratapsingh.com/mockito-cheatsheet-tldr-and-tips?utm_source=hashnode&utm_medium=feed)

These are some of the useful methods and classes provided by Mockito 1. Mockito.mock() Creates a mock of any class. By default, it will return default value for methods and fields when not mocked. For Example: Primitive data types such as byte, short...

Oct 12, 2022 · 2 min read · blog.tejpratapsingh.com  
Updated Oct 19, 2022  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#testing](https://hashnode.com/tag/testing)
-   [#android](https://hashnode.com/tag/android)
-   [#mockito](https://hashnode.com/tag/mockito)
-   [#mocking](https://hashnode.com/tag/mocking)

## Written by

[Tej Pratap Singh](https://hashnode.com/@tejpratap)

@tejpratap · Bangalore, IN

  
[View profile](https://hashnode.com/@tejpratap)

Developer

Code, Movies and code for movies

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
