Registry / testing / specs2-mock-2-10

specs2-mock-2-10

JSON →
library3.10.0javamavenunverified

Provides mocking support for the Specs2 testing framework in Scala 2.10.

<dependency> <groupId>org.specs2</groupId> <artifactId>specs2-mock_2.10</artifactId> <version>3.10.0</version> </dependency>
INSTALL
IMPORT
SIG · SPECS2-MOCK-2-10
S
specs2-mock-2-10
testingjavav3.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.

Mockito
org.specs2.mock.Mockito

Use Mockito-style mocking in a Specs2 specification.

import org.specs2.mock.Mockito; import org.specs2.mutable.Specification; class MySpec extends Specification with Mockito { "A mock" should { "return expected value" in { val mockList = mock[List[String]] mockList.get(0) returns "hello" mockList.get(0) mustEqual "hello" } } }
Debug
Known issues
breakingThis version is for Scala 2.10 only; use specs2-mock_2.12 or later for newer Scala versions.
fix
Select the artifact with the appropriate Scala version suffix (e.g., _2.12).
affects: <=3.10.0
Upgrade
Version history
3.10.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
specs2-mock-2-10 — mvn dependency:get specs2-mock-2-10 · libregistry