Registry / testing / specs2-mock-2-12

specs2-mock-2-12

JSON →
library4.23.0javamavenunverified

Mocking support for the specs2 testing library in Scala.

<dependency> <groupId>org.specs2</groupId> <artifactId>specs2-mock_2.12</artifactId> <version>4.23.0</version> </dependency>
INSTALL
IMPORT
SIG · SPECS2-MOCK-2-12
S
specs2-mock-2-12
testingjavav4.23.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

Uses Mockito mocking within a specs2 specification.

import org.specs2.mock.Mockito import org.specs2.mutable.Specification class MySpec extends Specification with Mockito { "A mock" should { "return stubbed value" in { val mockList = mock[java.util.List[String]] mockList.get(0) returns "hello" mockList.get(0) mustEqual "hello" } } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.23.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
specs2-mock-2-12 — mvn dependency:get specs2-mock-2-12 · libregistry