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. MockitoAnnotations (Mockito 2.2.7 API)

    Constructor Detail MockitoAnnotations public MockitoAnnotations() Method Detail initMocks public static void initMocks(Object testClass) Initializes objects annotated with Mockito annotations for given …

  4. 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; …

  5. 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 …

  6. Overview (Mockito 2.2.7 API)

    Overview Package Class Use Tree Deprecated Index Help Mockito 2.2.7 API

  7. 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.

  8. BDDMockito (Mockito 2.2.7 API)

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

  9. 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.

  10. Overview (Mockito 2.2.7 API)

    Click to see examples. Mockito 2.2.7 API.