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