About 50 results
Open links in new tab
  1. Mockito framework site

    A landing page for information about Mockito framework, a mocking framework for unit tests written in Java.

  2. Mockito (Mockito 2.2.7 API)

    Mockito now offers an Incubating, optional support for mocking final classes and methods. This is a fantastic improvement that demonstrates Mockito's everlasting quest for improving testing …

  3. ArgumentMatchers (Mockito 2.2.7 API)

    Since Mockito 2.1.0, only allow valued Character, thus null is not anymore a valid value. As primitive wrappers are nullable, the suggested API to match null wrapper would be isNull(). We felt this …

  4. ArgumentCaptor (Mockito 2.2.7 API)

    Mockito verifies argument values in natural java style: by using an equals () method. This is also the recommended way of matching arguments because it makes tests clean & simple.

  5. Spy (Mockito 2.2.7 API)

    Mockito doesn't mock final methods so the bottom line is: when you spy on real objects + you try to stub a final method = trouble. Also you won't be able to verify those method as well.

  6. InjectMocks (Mockito 2.2.7 API)

    Mockito will try to inject mocks only either by constructor injection, setter injection, or property injection in order and as described below. If any of the following strategy fail, then Mockito won't report failure; …

  7. BDDMockito (Mockito 2.2.7 API)

    Methods inherited from class org.mockito. Mockito after, atLeast, atLeastOnce, atMost, calls, clearInvocations, description, doAnswer, doCallRealMethod, doNothing ...

  8. MockMaker (Mockito 2.2.7 API)

    org.mockito.plugins Interface MockMaker public interface MockMaker The facility to create mocks. By default, an internal byte-buddy/asm/objenesis based implementation is used. MockMaker is an …

  9. Overview (Mockito 2.2.7 API)

    Overview Package Class Use Tree Deprecated Index Help Mockito 2.2.7 API

  10. MockitoAnnotations (Mockito 2.2.7 API)

    Initializes objects annotated with Mockito annotations for given testClass: @ Mock, @ Spy, @ Captor, @ InjectMocks See examples in javadoc for MockitoAnnotations class.