Merge "Rename satisfiedBy to canBeSatisfiedBy for MatchAllNetworkSpecifier" am: bf1206f8fa

Change-Id: Ia4f99dcf6c86a356c1490b6500dd5e5016ff7257
This commit is contained in:
Rambo Wang
2020-04-30 15:19:24 +00:00
committed by Automerger Merge Worker

View File

@@ -39,12 +39,12 @@ class MatchAllNetworkSpecifierTest {
}
@Test(expected = IllegalStateException::class)
fun testSatisfiedBy() {
fun testCanBeSatisfiedBy() {
val specifier = MatchAllNetworkSpecifier()
val discoverySession = Mockito.mock(DiscoverySession::class.java)
val peerHandle = Mockito.mock(PeerHandle::class.java)
val wifiAwareNetworkSpecifier = WifiAwareNetworkSpecifier.Builder(discoverySession,
peerHandle).build()
specifier.satisfiedBy(wifiAwareNetworkSpecifier)
specifier.canBeSatisfiedBy(wifiAwareNetworkSpecifier)
}
}