Registry / testing / mockito-3-4-2-12

mockito-3-4-2-12

JSON →
library3.2.10.0javamavenunverified

Integration library for using Mockito 3.4 with ScalaTest on Scala 2.12.

<dependency> <groupId>org.scalatestplus</groupId> <artifactId>mockito-3-4_2.12</artifactId> <version>3.2.10.0</version> </dependency>
INSTALL
IMPORT
SIG · MOCKITO-3-4-2-12
M
mockito-3-4-2-12
testingjavav3.2.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MockitoSugar
org.scalatestplus.mockito.MockitoSugar

Create a mock using MockitoSugar in a ScalaTest spec.

import org.scalatestplus.mockito.MockitoSugar import org.scalatest.flatspec.AnyFlatSpec class MySpec extends AnyFlatSpec with MockitoSugar { "A mock" should "be created" in { val mockList = mock[List[String]] assert(mockList != null) } }
Debug
Known issues
gotchaMockito 3.4 may have breaking changes from earlier versions; check compatibility with your Scala version.
fix
Use the correct version of scalatestplus-mockito for your Scala version (e.g., 2.12).
affects: >=3.2.10.0
Upgrade
Version history
3.2.10.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
mockito-3-4-2-12 — mvn dependency:get mockito-3-4-2-12 · libregistry