diff --git a/app/views/plus/mockitoVersions.scala.html b/app/views/plus/mockitoVersions.scala.html index f0eb09d26..d125b3a11 100644 --- a/app/views/plus/mockitoVersions.scala.html +++ b/app/views/plus/mockitoVersions.scala.html @@ -37,6 +37,12 @@
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.
+
Invokes the mock(classToMock: Class[T], name: String)
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T], name: String)
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
+val mockCollaborator = mock(classOf[Collaborator], name) +
Using this method, you can shorten that to:
+val mockCollaborator = mock[Collaborator](name) ++
Invokes the mock(classToMock: Class[T], mockSettings: MockSettings)
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T], mockSettings: MockSettings)
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
+val mockCollaborator = mock(classOf[Collaborator], mockSettings) +
Using this method, you can shorten that to:
+val mockCollaborator = mock[Collaborator](mockSettings) ++
Invokes the mock(classToMock: Class[T], defaultAnswer: Answer[_])
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T], defaultAnswer: Answer[_])
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
+val mockCollaborator = mock(classOf[Collaborator], defaultAnswer) +
Using this method, you can shorten that to:
+val mockCollaborator = mock[Collaborator](defaultAnswer) ++
Invokes the mock(classToMock: Class[T])
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T])
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
+val mockCollaborator = mock(classOf[Collaborator]) +
Using this method, you can shorten that to:
+val mockCollaborator = mock[Collaborator] ++
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.
Invokes the mock(classToMock: Class[T], name: String)
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T], name: String)
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
+val mockCollaborator = mock(classOf[Collaborator], name) +
Using this method, you can shorten that to:
+val mockCollaborator = mock[Collaborator](name) ++
Invokes the mock(classToMock: Class[T], mockSettings: MockSettings)
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T], mockSettings: MockSettings)
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
+val mockCollaborator = mock(classOf[Collaborator], mockSettings) +
Using this method, you can shorten that to:
+val mockCollaborator = mock[Collaborator](mockSettings) ++
Invokes the mock(classToMock: Class[T], defaultAnswer: Answer[_])
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T], defaultAnswer: Answer[_])
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
+val mockCollaborator = mock(classOf[Collaborator], defaultAnswer) +
Using this method, you can shorten that to:
+val mockCollaborator = mock[Collaborator](defaultAnswer) ++
Invokes the mock(classToMock: Class[T])
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Invokes the mock(classToMock: Class[T])
method on the Mockito
companion object (i.e., the
+static mock(java.lang.Class
method in Java class org.mockito.Mockito
).
Using the Mockito API directly, you create a mock with:
+val mockCollaborator = mock(classOf[Collaborator]) +
Using this method, you can shorten that to:
+val mockCollaborator = mock[Collaborator] ++
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.
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.
+