Skip to content

Commit

Permalink
remove unused specs2-mock dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dwickern committed Nov 1, 2023
1 parent e3072f2 commit add3dbf
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ lazy val swagger = (projectMatrix in file("."))
name := "swagger-play",
libraryDependencies ++= Seq(
"org.specs2" %% "specs2-core" % "4.6.0" % Test,
"org.specs2" %% "specs2-mock" % "4.6.0" % Test,
"org.specs2" %% "specs2-junit" % "4.6.0" % Test,
"org.mockito" % "mockito-core" % "3.2.0" % Test,
),
Expand Down
3 changes: 1 addition & 2 deletions src/test/scala/EBeanModelTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import testdata._
import io.swagger.converter._

import org.specs2.mutable._
import org.specs2.mock.Mockito

class EBeanModelTest extends Specification with Mockito {
class EBeanModelTest extends Specification {
"ModelConverters" should {
"not parse an EBean" in {
val models = ModelConverters.getInstance().readAll(classOf[Person])
Expand Down
3 changes: 1 addition & 2 deletions src/test/scala/PlayApiListingCacheSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import io.swagger.models.parameters.{BodyParameter, PathParameter, QueryParamete
import io.swagger.models.properties.{ArrayProperty, RefProperty}
import play.modules.swagger._
import org.specs2.mutable._
import org.specs2.mock.Mockito
import play.api.Logger
import play.api.Environment
import io.swagger.util.Json
Expand All @@ -16,7 +15,7 @@ import play.routes.compiler.Route
import scala.jdk.CollectionConverters._
import play.routes.compiler.{Route => PlayRoute}

class PlayApiListingCacheSpec extends Specification with Mockito with BeforeAfterAll {
class PlayApiListingCacheSpec extends Specification with BeforeAfterAll {

// set up mock for Play Router
val routesList = {
Expand Down
3 changes: 1 addition & 2 deletions src/test/scala/PlayApiScannerSpec.scala
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import java.io.File

import org.specs2.mock.Mockito
import org.specs2.mutable._
import play.api.Environment
import play.modules.swagger._
import play.routes.compiler.{Route => PlayRoute}

import scala.jdk.CollectionConverters._

class PlayApiScannerSpec extends Specification with Mockito {
class PlayApiScannerSpec extends Specification {

// set up mock for Play Router
val routesList = {
Expand Down
3 changes: 1 addition & 2 deletions src/test/scala/PlayDelegatedApiScannerSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import io.swagger.config.ScannerFactory
import org.specs2.mock.Mockito
import org.specs2.mutable._
import org.specs2.specification.BeforeAfterAll
import play.api.Environment
Expand All @@ -8,7 +7,7 @@ import play.routes.compiler.Route

import scala.jdk.CollectionConverters._

class PlayDelegatedApiScannerSpec extends Specification with Mockito with BeforeAfterAll {
class PlayDelegatedApiScannerSpec extends Specification with BeforeAfterAll {

val routes: List[Route] =
SwaggerPluginHelper.parseRoutes("delegation", "/api", Environment.simple())
Expand Down

0 comments on commit add3dbf

Please sign in to comment.