Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2eeb08f2 authored by Fengjiang Li's avatar Fengjiang Li
Browse files

[Test Week] Replace verifyZeroInteractions with verifyNoMoreInteractions in RunnableListTest

Fix: 354021767
Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: I85945c0a0f64ca0a65d28d66f3c47d83d0943c3b
parent 9569f540
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ import org.mockito.Mock
import org.mockito.MockitoAnnotations
import org.mockito.kotlin.reset
import org.mockito.kotlin.verify
import org.mockito.kotlin.verifyZeroInteractions
import org.mockito.kotlin.verifyNoMoreInteractions

@SmallTest
class RunnableListTest {
@@ -73,7 +73,7 @@ class RunnableListTest {

        underTest.executeAllAndDestroy()

        verifyZeroInteractions(runnable1)
        verifyNoMoreInteractions(runnable1)
    }

    @Test
@@ -107,7 +107,7 @@ class RunnableListTest {
        underTest.remove(runnable1)
        underTest.executeAllAndClear()

        verifyZeroInteractions(runnable1)
        verifyNoMoreInteractions(runnable1)
        verify(runnable2).run()
    }
}