Skip to content

Commit b673081

Browse files
committed
fix tests
1 parent 82ec444 commit b673081

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

library/src/test/java/xyz/klinker/android/floating_tutorial/TutorialPresenterTest.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ class TutorialPresenterTest : FloatingTutorialJunitSuite() {
4545
fun shouldRevealOnStart() {
4646
val mockPage = mock(TutorialPage::class.java)
4747

48-
doNothing().`when`(presenter!!).circularRevealIn()
48+
doNothing().`when`(presenter!!).revealIn()
4949
doReturn(mockPage).`when`(provider!!).currentPage()
5050

5151
presenter!!.start()
5252

53-
verify(presenter!!).circularRevealIn()
53+
verify(presenter!!).revealIn()
5454
verify(mockPage).onShown(true)
5555
}
5656

@@ -71,12 +71,12 @@ class TutorialPresenterTest : FloatingTutorialJunitSuite() {
7171

7272
@Test
7373
fun shouldExitWhenBackingOutOfTheFirstPage() {
74-
doNothing().`when`(presenter!!).circularRevealOut()
74+
doNothing().`when`(presenter!!).revealOut()
7575

7676
`when`(provider!!.previousPage()).thenReturn(null)
7777
presenter!!.onBackPressed()
7878

79-
verify(presenter!!).circularRevealOut()
79+
verify(presenter!!).revealOut()
8080
}
8181

8282
@Test
@@ -119,20 +119,20 @@ class TutorialPresenterTest : FloatingTutorialJunitSuite() {
119119

120120
@Test
121121
fun shouldExitWhenGoingForwardOnLastPage() {
122-
doNothing().`when`(presenter!!).circularRevealOut()
122+
doNothing().`when`(presenter!!).revealOut()
123123

124124
`when`(provider!!.nextPage()).thenReturn(null)
125125
presenter!!.onNextPressed()
126126

127-
verify(presenter!!).circularRevealOut()
127+
verify(presenter!!).revealOut()
128128
}
129129

130130
@Test
131131
fun shouldProvideFinishedCallbackWhenAvailable() {
132132
val activityMock = mock(FinishedListenerTutorial::class.java)
133133
presenter = spy(TutorialPresenter(activityMock, provider!!))
134134

135-
doNothing().`when`(presenter!!).circularRevealOut()
135+
doNothing().`when`(presenter!!).revealOut()
136136
`when`(provider!!.nextPage()).thenReturn(null)
137137
presenter!!.onNextPressed()
138138

0 commit comments

Comments
 (0)