Created
June 26, 2021 09:27
-
-
Save orcchg/181d20fa239ebbccaded50922029c23b to your computer and use it in GitHub Desktop.
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
class TestTrustedLoginUserUseCase { | |
@MockK private lateinit var authTokenStorage: AuthTokenStorage | |
@MockK private lateinit var repository: AuthRepository | |
@MockK private lateinit var secureRandom: SecureRandom | |
@MockK private lateinit var schedulersFactory: SchedulersFactory | |
private lateinit var trustedLoginUserUseCase | |
@Before | |
fun setUp() { | |
MockKAnnotations.init(this) | |
trustedLoginUserUseCase = TrustedLoginUserUseCase( | |
authTokenStorage, | |
repository, | |
secureRandom, | |
schedulersFactory | |
) | |
} | |
@Test | |
`test step1`() { | |
// logic | |
} | |
// test other steps and steps integration | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment