Searched refs:expectedServiceConnection (Results 1 – 1 of 1) sorted by relevance
523 final ServiceConnection expectedServiceConnection = new EmptyServiceConnection(); in bindServiceShouldAddServiceConnectionToListOfBoundServiceConnections() local526 assertThat(context.bindService(new Intent("connect"), expectedServiceConnection, 0)).isTrue(); in bindServiceShouldAddServiceConnectionToListOfBoundServiceConnections()529 .isSameAs(expectedServiceConnection); in bindServiceShouldAddServiceConnectionToListOfBoundServiceConnections()535 final ServiceConnection expectedServiceConnection = new EmptyServiceConnection(); in bindServiceShouldAddServiceConnectionToListOfBoundServiceConnectionsEvenIfServiceUnboundable() local540 assertThat(context.bindService(serviceIntent, expectedServiceConnection, 0)).isFalse(); in bindServiceShouldAddServiceConnectionToListOfBoundServiceConnectionsEvenIfServiceUnboundable()542 …ertThat(shadowApplication.getBoundServiceConnections().get(0)).isSameAs(expectedServiceConnection); in bindServiceShouldAddServiceConnectionToListOfBoundServiceConnectionsEvenIfServiceUnboundable()548 final ServiceConnection expectedServiceConnection = new EmptyServiceConnection(); in unbindServiceShouldRemoveServiceConnectionFromListOfBoundServiceConnections() local550 assertThat(context.bindService(new Intent("connect"), expectedServiceConnection, 0)).isTrue(); in unbindServiceShouldRemoveServiceConnectionFromListOfBoundServiceConnections()553 context.unbindService(expectedServiceConnection); in unbindServiceShouldRemoveServiceConnectionFromListOfBoundServiceConnections()557 .isSameAs(expectedServiceConnection); in unbindServiceShouldRemoveServiceConnectionFromListOfBoundServiceConnections()