https://github.com/evolution-gaming/test-util
https://github.com/evolution-gaming/test-util
mockito scala
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/evolution-gaming/test-util
- Owner: evolution-gaming
- Created: 2017-10-24T08:40:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-08T18:56:17.000Z (almost 7 years ago)
- Last Synced: 2025-01-27T19:54:11.134Z (over 1 year ago)
- Topics: mockito, scala
- Language: Scala
- Size: 7.81 KB
- Stars: 1
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# test-util
[](https://travis-ci.org/evolution-gaming/test-util)
[](https://coveralls.io/r/evolution-gaming/test-util)
[](https://www.codacy.com/manual/evolution-gaming/test-util?utm_source=github.com&utm_medium=referral&utm_content=evolution-gaming/test-util&utm_campaign=Badge_Grade)
[ ](https://bintray.com/evolutiongaming/maven/test-util/_latestVersion)
[](https://opensource.org/licenses/MIT)
## Syntax sugar for Scala around Mockito
```scala
def arg[T](f: T => Any): T ~ argThat[T]
def ans[T](f: InvocationOnMock => T): Answer[T] ~ new Answer[T]
def ans1[A, T](f: A => T): Answer[T] ~ new Answer[T]
def argumentCaptor[T]: ArgumentCaptor[T] ~ ArgumentCaptor.forClass
```
## Getting Started
```scala
resolvers += Resolver.bintrayRepo("evolutiongaming", "maven")
libraryDependencies += "com.evolutiongaming" %% "test-util" % "0.0.2"
```