From 6fc5438dfd43be66304432bb61d61a5e967ae86a Mon Sep 17 00:00:00 2001 From: Rambo Wang Date: Fri, 24 Apr 2020 16:37:16 -0700 Subject: Rename satisfiedBy to canBeSatisfiedBy for MatchAllNetworkSpecifier MatchAllNetworkSpecifier is a subclass of NetworkSpecifer. The method satisfiedBy should be renamed to canBeSatisfiedBy together with other subclass of NetworkSpecifer in b/152238712. Add annotation @Overide for the method to make sure it will not get ignored when refactor in the future. Bug: 154956584 Test: atest android.net.MatchAllNetworkSpecifierTest Change-Id: Ibe32fd50fae43aa635c1c0dad66eaea82011c8b7 --- tests/net/common/java/android/net/MatchAllNetworkSpecifierTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/net/common/java/android/net/MatchAllNetworkSpecifierTest.kt b/tests/net/common/java/android/net/MatchAllNetworkSpecifierTest.kt index ef15b668e24c..a50f0461fae6 100644 --- a/tests/net/common/java/android/net/MatchAllNetworkSpecifierTest.kt +++ b/tests/net/common/java/android/net/MatchAllNetworkSpecifierTest.kt @@ -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) } } -- cgit v1.2.3-59-g8ed1b