{"id":17446083,"url":"https://github.com/markus1189/mockito-scala","last_synced_at":"2025-09-08T12:36:48.951Z","repository":{"id":141788222,"uuid":"86897653","full_name":"markus1189/mockito-scala","owner":"markus1189","description":"Syntactic sugar for mockito in Scala","archived":false,"fork":false,"pushed_at":"2019-06-28T13:47:38.000Z","size":32,"stargazers_count":6,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T08:33:05.623Z","etag":null,"topics":["mockito","scala","testing"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markus1189.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-01T08:26:27.000Z","updated_at":"2019-06-28T13:47:39.000Z","dependencies_parsed_at":"2023-03-17T05:15:42.328Z","dependency_job_id":null,"html_url":"https://github.com/markus1189/mockito-scala","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markus1189%2Fmockito-scala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markus1189%2Fmockito-scala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markus1189%2Fmockito-scala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markus1189%2Fmockito-scala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markus1189","download_url":"https://codeload.github.com/markus1189/mockito-scala/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249714129,"owners_count":21314777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mockito","scala","testing"],"created_at":"2024-10-17T18:22:29.567Z","updated_at":"2025-04-19T14:29:20.325Z","avatar_url":"https://github.com/markus1189.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .-=] ABANDONED [=-.\n\nThis project is abandoned and not maintained any more, you might want to have a look at https://github.com/mockito/mockito-scala\n\n## Mockito Sugar for Scala\n\n[![Build Status](https://travis-ci.org/markus1189/mockito-scala.svg?branch=master)](https://travis-ci.org/markus1189/mockito-scala)\n[![Maven Central](https://img.shields.io/maven-central/v/org.markushauck/mockitoscala_2.12.svg)](https://maven-badges.herokuapp.com/maven-central/org.markushauck/mockitoscala_2.12)\n\n\n### Overview\n\nInspired by [specs2](https://etorreborre.github.io/specs2/), this is a\nScala library that builds on [mockito](http://mockito.org) and\nprovides a thin wrapper around the API to make it more pleasurable\n(and safer) to use in Scala.\n\n*This library does not depend on any specific testing framework!*\nTherefore you are free to use it with `specs2`, `ScalaTest` or\nsomething else.\n\n### Why?\n\nThe Java API for Mockito is good, but once you are used to some\nsyntactic conveniences from `specs2`'s `Mockito` trait, it feels very\nclunky.  When using other test frameworks that `specs2`, there was up\nuntil now nothing that provides this form of convenience, therefore\nthis library was written.\n\nThis library provides a lightweight Scala DSL around Mockito's Java\nAPI.  The goals are:\n\n  - more convenient syntax\n  - less runtime exceptions on API misuse\n  - easy to fall back to Java API when necessary\n\n### How?\n\nAdd it to your `sbt` build:\n\n```\nlibraryDependencies ++= Seq(\n  \"org.markushauck\" %% \"mockitoscala\" % \"0.3.0\"\n)\n\n```\n\nor import it in `Ammonite`:\n\n```\nimport $ivy.`org.markushauck::mockitoscala:0.3.0`\n```\n\nFinally, extend\nfrom\n[MockitoSugar](https://github.com/markus1189/mockito-scala/blob/master/src/main/scala/org/markushauck/mockito/MockitoSugar.scala) trait\nin your test suite or import all members of the companion object.\n\n### Examples!\n\nPlease\nsee\n[Examples](https://github.com/markus1189/mockito-scala/blob/master/src/test/scala/org/markushauck/mockito/Examples.scala) for\nan overview of what is currently possible.\n\n## Contributing\n\nContributions via GitHub pull requests are gladly accepted from their\noriginal author. Along with any pull requests, please state that the\ncontribution is your original work and that you license the work to\nthe project under the project's open source license. Whether or not\nyou state this explicitly, by submitting any copyrighted material via\npull request, email, or other means you agree to license the material\nunder the project's open source license and warrant that you have the\nlegal authority to do so.\n\n## License\n\nThis code is open source software licensed under\nthe\n[Apache 2.0 License](http://apache.org/licenses/LICENSE-2.0.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkus1189%2Fmockito-scala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkus1189%2Fmockito-scala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkus1189%2Fmockito-scala/lists"}