Merge "Rename satisfiedBy to canBeSatisfiedBy for MatchAllNetworkSpecifier"

This commit is contained in:
Rambo Wang
2020-04-30 15:07:18 +00:00
committed by Gerrit Code Review

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)
}
}