GCX-HCI / ThirtyInch

a MVP library for Android favoring a stateful Presenter
Apache License 2.0
1.03k stars 101 forks source link

Convert TiPresenterTest to Kotlin #176

Closed lukaszkalnik closed 5 years ago

lukaszkalnik commented 5 years ago

Converts TiPresenterTest and TiMockPresenter to Kotlin and MockK. This builds up on #174.

One of the old Java tests, which gives only a warning in Java, doesn't compile in Kotlin because of a null argument being passed as a @NonNull method parameter. As there will still be library consumers from Java, I have left the test in an admittedly weirdly named TiPresenterTestJava.java file (to make it easier to distinguish the files in the IDE).

Please merge after #174.