Registry / testing / scalamock-2-12

scalamock-2-12

JSON →
library7.5.5javamavenunverified

ScalaMock provides mocking capabilities for Scala code compiled with Scala 2.12.

<dependency> <groupId>org.scalamock</groupId> <artifactId>scalamock_2.12</artifactId> <version>7.5.5</version> </dependency>
INSTALL
IMPORT
SIG · SCALAMOCK-2-12
S
scalamock-2-12
testingjavav7.5.5
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.

MockFactory
org.scalamock.scalatest.MockFactory

Create a mock using ScalaMock in a ScalaTest suite.

class MyTest extends FlatSpec with MockFactory { "A mock" should "work" in { val mockService = mock[Service] (mockService.call _).expects().returning("result") } }
Debug
Known issues
breakingThis version is for Scala 2.12; use scalamock_2.13 or scalamock_3 for other versions.
fix
Select the correct artifact for your Scala version.
affects: *
Upgrade
Version history
7.5.5latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
scalamock-2-12 — mvn dependency:get scalamock-2-12 · libregistry