Registry / testing / mockito-scala-scalatest-2-13

mockito-scala-scalatest-2-13

JSON →
library2.2.1javamavenunverified

mockito-scala-scalatest provides Mockito integration with ScalaTest for Scala 2.13.

<dependency> <groupId>org.mockito</groupId> <artifactId>mockito-scala-scalatest_2.13</artifactId> <version>2.2.1</version> </dependency>
INSTALL
IMPORT
SIG · MOCKITO-SCALA-SCAL
M
mockito-scala-scalatest-2-13
testingjavav2.2.1
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.mockito.scalatest.MockitoSugar

Use Mockito mocks in ScalaTest

import org.mockito.scalatest.MockitoSugar import org.scalatest.flatspec.AnyFlatSpec class ExampleSpec extends AnyFlatSpec with MockitoSugar { "Mockito" should "work" in { val mockList = mock[List[Int]] when(mockList.get(0)).thenReturn(1) assert(mockList.get(0) == 1) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mockito-scala-scalatest-2-13 — mvn dependency:get mockito-scala-scalatest-2-13 · libregistry