Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4acab68 authored by Paul Duffin's avatar Paul Duffin Committed by android-build-merger
Browse files

Merge "Fix test so that it runs as a JUnit 4 rather than JUnit 3 test"

am: a147619a

Change-Id: I62fd0f9076d17f8d1a48d3177ca913bce84c4ad6
parents f2978c7f a147619a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -15,8 +15,9 @@
 */
package com.android.internal.telephony;

import static org.junit.Assert.assertEquals;

import android.telephony.PhoneNumberFormattingTextWatcher;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
import android.text.Editable;
import android.text.Selection;
@@ -25,7 +26,7 @@ import android.text.TextWatcher;

import org.junit.Test;

public class PhoneNumberWatcherTest extends AndroidTestCase {
public class PhoneNumberWatcherTest {
    @Test @SmallTest
    public void testAppendChars() {
        final String multiChars = "65012345";
@@ -300,7 +301,6 @@ public class PhoneNumberWatcherTest extends AndroidTestCase {
        assertEquals(expected.length(), Selection.getSelectionEnd(number));
    }

    @Test @SmallTest
    private TextWatcher getTextWatcher() {
        return new PhoneNumberFormattingTextWatcher("US");
    }