Last active
September 17, 2019 18:26
-
-
Save tzachz/e528b9555aa4a3241330e204056b271f to your computer and use it in GitHub Desktop.
Mockito gotcha: Service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kenshoo.example | |
class MyService(val dependency: MyOtherService) { | |
def testedMethod(input: String): Int = dependency.getValue(input) + 1 | |
} | |
class MyOtherService() { | |
def getValue(input: String): Int = input.length * 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment