Polpetta / jkk

A git-like cli for Jenkins written in Kotlin 🤵 🔥
GNU General Public License v3.0
0 stars 1 forks source link

WIP add dependency injection and mocks to tests #9

Closed apontini closed 4 years ago

apontini commented 4 years ago

This PR aims at adding dependency injection support and mocks to tests. This is now implemented with Guice and Mockito. We might also consider Koin to perform depencendy injection, which is build natively for Kotlin. Before merging, we need to discuss which one to use

apontini commented 4 years ago

I was googling some informations about Koin and then I found this article on Medium which explains some pros and cons about it. I didn't really like the cons, I feel that going with Guice will be the right thing