Packages

p

org.scalatest

mockito

package mockito

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait MockitoSugar extends AnyRef

    Trait that provides some basic syntax sugar for Mockito.

    Trait that provides some basic syntax sugar for Mockito.

    Using the Mockito API directly, you create a mock with:

    val mockCollaborator = mock(classOf[Collaborator])
    

    Using this trait, you can shorten that to:

    val mockCollaborator = mock[Collaborator]
    

    This trait also provides shorthands for the three other (non-deprecated) overloaded mock methods, which allow you to pass in a default answer, a name, or settings.

    Annotations
    @deprecated
    Deprecated

    MockitoSugar has been moved from org.scalatest.mockito to org.scalatestplus.mockito. Please update your imports, as this deprecated type alias will be removed in a future version of ScalaTest.

Deprecated Value Members

  1. object MockitoSugar extends MockitoSugar

    Companion object that facilitates the importing of MockitoSugar members as an alternative to mixing it in.

    Companion object that facilitates the importing of MockitoSugar members as an alternative to mixing it in. One use case is to import MockitoSugar members so you can use them in the Scala interpreter.

    Annotations
    @deprecated
    Deprecated

    MockitoSugar has been moved from org.scalatest.mockito to org.scalatestplus.mockito. Please update your imports, as this deprecated type alias will be removed in a future version of ScalaTest.

Ungrouped