Android developer portal with tools, libraries, and apps

Show: All / Free / Paid / Demo

Stubbed Mock is an open-source library written in Kotlin for JVM that allows users to stub data models in a Mockito-like fashion during unit tests.

Stubbed Mock supports many language features like plain Java and Kotlin classes, constructor and field injection of stubbed values, lazy, Kotlin's backing field properties and more.

Important to note: This library isn't meant to replace Mockito and doesn't mock class (or function) behavior. Its primary use is for data model classes.

Oct 3, 2019
Advertisement

Mocking library for Kotlin.

Nice features

  • mocking final classes and functions (via inlining)
  • pure Kotlin mocking DSL
  • matchers partial specification
  • chained calls
  • matcher expressions
  • mocking coroutines
  • capturing lambdas
  • extension function mocking
Jan 6, 2018

CursorMock is a library for Android that helps testing SQLite related code without need to create testing databases, managing database connections, etc in/for testing environment. CursorMock gives ability to build a Cursor in a fast and reliable way from manually provided values or from data objects.

Aug 28, 2017

Fluent mockito.

May 24, 2016

A JUnit rule to easily override Dagger 2 objects.

Jan 6, 2016

Android specific assertions and mocks for mockito for cleaner test code.

Dec 25, 2015

PowerMock is a Java framework that allows you to unit test code normally regarded as untestable.

Jul 5, 2014

Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with clean & simple API. Mockito doesn't give you hangover because the tests are very readable and they produce clean verification errors.

Jul 5, 2014

EasyMock has been the first dynamic Mock Object generator, relieving users of hand-writing Mock Objects, or generating code for them. EasyMock provides Mock Objects by generating them on the fly using Java's proxy mechanism.

Jul 5, 2014

Android Mock is a framework for mocking interfaces and classes on the Dalvik VM.

Jul 5, 2014