Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mockito 5 #33

Merged
merged 3 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
java-version: 11
- name: Build and Test
run: sbt -v +test
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,28 @@ ScalaTest + Mockito provides integration support between ScalaTest and Mockito.

**Usage**

To use it for ScalaTest 3.2.17 and Mockito 4.11.x:
To use it for ScalaTest 3.2.17 and Mockito 5.8.x:

SBT:

```
libraryDependencies += "org.scalatestplus" %% "mockito-4-11" % "3.2.17.0" % "test"
libraryDependencies += "org.scalatestplus" %% "mockito-5-8" % "3.2.17.0" % "test"
```

Maven:

```
<dependency>
<groupId>org.scalatestplus</groupId>
<artifactId>mockito-4-11_2.13</artifactId>
<artifactId>mockito-5-8_3</artifactId>
<version>3.2.17.0</version>
<scope>test</scope>
</dependency>
```

**Note**
Mockito 5.x requires JDK11+, if you are on JDK8, please use `mockito-4-11` instead.

**Publishing**

Please use the following commands to publish to Sonatype:
Expand Down
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import java.io.PrintWriter
import scala.io.Source

name := "mockito-4.11"
name := "mockito-5.8"

organization := "org.scalatestplus"

Expand All @@ -28,12 +28,12 @@ developers := List(
)
)

scalaVersion := "2.13.11"
scalaVersion := "2.13.12"

crossScalaVersions := List("2.10.7", "2.11.12", "2.12.17", "2.13.11", "3.1.3")
crossScalaVersions := List("2.10.7", "2.11.12", "2.12.18", "2.13.12", "3.1.3")

libraryDependencies ++= Seq(
"org.mockito" % "mockito-core" % "4.11.0",
"org.mockito" % "mockito-core" % "5.8.0",
"org.scalatest" %% "scalatest-core" % "3.2.17",
"org.scalatest" %% "scalatest-funsuite" % "3.2.17" % "test"
)
Expand Down
Loading