Update test for sdk=34

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2023-11-16 11:15:17 +01:00
parent 7b13a87680
commit 273b7e547b
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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