{"repo":"mockito/mockito-scala","free":true,"listed":false,"github":"https://github.com/mockito/mockito-scala","clone":"git clone https://github.com/mockito/mockito-scala.git","description":"Mockito for Scala language","language":"Scala","stars":367,"topics":["mockito","testing","mocks","tdd","scala","mocking-framework","mocking-library","testing-tools","test-automation","test-driven-development"],"license":"MIT","category":"dev-tools","readme_excerpt":"Mockito Scala The most popular mocking framework for Java, now in Scala!!! Why separate project? The library has independent developers, release cycle and versioning from core mockito library ( ). This is intentional because core Mockito developers don't use Scala and cannot confidently review PRs, and set the vision for the Scala library. Dependency Artifact identifier: \"org.mockito:mockito-scala [scala-version]:[version]\" Artifact identifier: \"org.mockito:mockito-scala-scalatest [scala-version]:[version]\" Artifact identifier: \"org.mockito:mockito-scala-specs2 [scala-version]:[version]\" Artifact identifier: \"org.mockito:mockito-scala-cats [scala-version]:[version]\" Artifact identifier: \"org.mockito:mockito-scala-scalaz [scala-version]:[version]\" Latest version - see release notes Repositories: Maven Central Please ensure you don't declare mockito-core as a dependency. mockito-scala will pull the appropriate version automatically Note: For more examples and use cases than the ones shown below, please refer to the library's specific tests - Cats - ScalaTest - Specs2 - Scalaz Partial unification If you're in Scala 2.12 you'll probably want to add the compiler flag -Ypartial-unification , if you don't you risk some compile errors when trying to stub complex types using the idiomatic syntax Notes for 2.1.0 Scala 3: mock[T] wrapper methods must be inline In Scala 3, mock[T] uses a compile-time macro to register by-name/vararg parameter metadata and value-class return types for T .","default_branch":null,"files":null,"tree":[],"storefront":"/r/mockito","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mockito/mockito-scala/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}