Loading tests/telephonytests/src/com/android/internal/telephony/PhoneNumberUtilsTest.java +17 −0 Original line number Diff line number Diff line Loading @@ -29,11 +29,28 @@ import android.text.style.TtsSpan; import androidx.test.filters.FlakyTest; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; public class PhoneNumberUtilsTest { private static final int MIN_MATCH = 7; private int mOldMinMatch; @Before public void setUp() throws Exception { mOldMinMatch = PhoneNumberUtils.getMinMatchForTest(); PhoneNumberUtils.setMinMatchForTest(MIN_MATCH); } @After public void tearDown() throws Exception { PhoneNumberUtils.setMinMatchForTest(mOldMinMatch); } @SmallTest @Test public void testExtractNetworkPortion() throws Exception { Loading Loading
tests/telephonytests/src/com/android/internal/telephony/PhoneNumberUtilsTest.java +17 −0 Original line number Diff line number Diff line Loading @@ -29,11 +29,28 @@ import android.text.style.TtsSpan; import androidx.test.filters.FlakyTest; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; public class PhoneNumberUtilsTest { private static final int MIN_MATCH = 7; private int mOldMinMatch; @Before public void setUp() throws Exception { mOldMinMatch = PhoneNumberUtils.getMinMatchForTest(); PhoneNumberUtils.setMinMatchForTest(MIN_MATCH); } @After public void tearDown() throws Exception { PhoneNumberUtils.setMinMatchForTest(mOldMinMatch); } @SmallTest @Test public void testExtractNetworkPortion() throws Exception { Loading