Skip to content

Commit

Permalink
Changed mocked action handler to interface to avoid unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonis Lilis committed Feb 15, 2024
1 parent d29cf50 commit 47720af
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,9 @@ class NotificationsListViewModelTest : BaseUnitTest() {
verify(action, times(1)).openDetailView()
}

private class ActionHandler {
fun openInTheReader(siteId: Long, postId: Long, commentId: Long) {
println("openInTheReader($siteId, $postId, $commentId)")
}
interface ActionHandler {
fun openInTheReader(siteId: Long, postId: Long, commentId: Long)

fun openDetailView() {
println("openDetailView")
}
fun openDetailView()
}
}

0 comments on commit 47720af

Please sign in to comment.