Package

org.mockito.integrations

scalatest

Permalink

package scalatest

Visibility
  1. Public
  2. All

Type Members

  1. trait IdiomaticMockitoFixture extends MockitoSessionFixture with IdiomaticMockito with ArgumentMatchersSugar

    Permalink

    It automatically wraps each test in a MockitoScalaSession so the implicit verifications are applied

    It automatically wraps each test in a MockitoScalaSession so the implicit verifications are applied

    Just mix-in after your favourite suite, i.e.

    class MyTest extends WordSpec with IdiomaticMockitoFixture
  2. trait MockitoFixture extends MockitoSessionFixture with MockitoSugar with ArgumentMatchersSugar

    Permalink

    It automatically wraps each test in a MockitoScalaSession so the implicit verifications are applied

    It automatically wraps each test in a MockitoScalaSession so the implicit verifications are applied

    Just mix-in after your favourite suite, i.e.

    class MyTest extends WordSpec with MockitoFixture
  3. trait ResetMocksAfterEachTest extends TestSuite with MockCreator

    Permalink

    It automatically resets each mock after a each test is run, useful when we need to pass the mocks to some framework once at the beginning of the test suite

    It automatically resets each mock after a each test is run, useful when we need to pass the mocks to some framework once at the beginning of the test suite

    Just mix-in after your favourite suite, i.e.

    class MyTest extends PlaySpec with MockitoSugar with ResetMocksAfterEachTest

Ungrouped