mirror of
https://github.com/nextcloud/android.git
synced 2024-11-30 18:21:10 +03:00
Update test for sdk=34
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
7b13a87680
commit
273b7e547b
1 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ class LocalConnectionTest {
|
|||
|
||||
// THEN
|
||||
// no binding is performed
|
||||
verify(exactly = 0) { context.bindService(any(), any(), any()) }
|
||||
verify(exactly = 0) { context.bindService(any(), any(), Context.BIND_AUTO_CREATE) }
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -76,12 +76,12 @@ class LocalConnectionTest {
|
|||
|
||||
// WHEN
|
||||
// bind requested
|
||||
every { context.bindService(mockIntent, any(), any()) } returns true
|
||||
every { context.bindService(mockIntent!!, any(), Context.BIND_AUTO_CREATE) } returns true
|
||||
connection.bind()
|
||||
|
||||
// THEN
|
||||
// service bound
|
||||
verify { context.bindService(mockIntent, any(), any()) }
|
||||
verify { context.bindService(mockIntent!!, any(), Context.BIND_AUTO_CREATE) }
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue