diff options
| author | Yorke Lee <yorkelee@google.com> | 2013-08-04 14:58:55 -0700 |
|---|---|---|
| committer | Yorke Lee <yorkelee@google.com> | 2013-08-05 10:31:44 -0700 |
| commit | fb585079cc4c522c27f6dd6bf03fd296535960f3 (patch) | |
| tree | 112cb8055ecdca34094f43c0754c4d1ea8216666 /tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java | |
| parent | f7840b76fb2a2323b085489e75f1cf80a8236bbe (diff) | |
| download | packages_apps_Dialer-fb585079cc4c522c27f6dd6bf03fd296535960f3.tar.gz packages_apps_Dialer-fb585079cc4c522c27f6dd6bf03fd296535960f3.tar.bz2 packages_apps_Dialer-fb585079cc4c522c27f6dd6bf03fd296535960f3.zip | |
Code cleanup for call log related items
Change-Id: I2aa0458e1fb74abaea60a02f430a4e413dfed365
Diffstat (limited to 'tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java')
| -rw-r--r-- | tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java b/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java index 9170a0b18..05c59a77f 100644 --- a/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java +++ b/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java @@ -179,24 +179,24 @@ public class PhoneCallDetailsHelperTest extends AndroidTestCase { public void testSetPhoneCallDetails_Geocode() { setPhoneCallDetailsWithNumberAndGeocode("+14125555555", "1-412-555-5555", "Pennsylvania"); assertNameEquals("1-412-555-5555"); // The phone number is shown as the name. - assertNumberEquals("Pennsylvania"); // The geocode is shown as the number. + assertLabelEquals("Pennsylvania"); // The geocode is shown as the label. } public void testSetPhoneCallDetails_NoGeocode() { setPhoneCallDetailsWithNumberAndGeocode("+14125555555", "1-412-555-5555", null); assertNameEquals("1-412-555-5555"); // The phone number is shown as the name. - assertNumberEquals("-"); // The empty geocode is shown as the number. + assertLabelEquals("-"); // The empty geocode is shown as the label. } public void testSetPhoneCallDetails_EmptyGeocode() { setPhoneCallDetailsWithNumberAndGeocode("+14125555555", "1-412-555-5555", ""); assertNameEquals("1-412-555-5555"); // The phone number is shown as the name. - assertNumberEquals("-"); // The empty geocode is shown as the number. + assertLabelEquals("-"); // The empty geocode is shown as the label. } public void testSetPhoneCallDetails_NoGeocodeForVoicemail() { setPhoneCallDetailsWithNumberAndGeocode(TEST_VOICEMAIL_NUMBER, "", "United States"); - assertNumberEquals("-"); // The empty geocode is shown as the number. + assertLabelEquals("-"); // The empty geocode is shown as the label. } public void testSetPhoneCallDetails_Highlighted() { @@ -250,9 +250,9 @@ public class PhoneCallDetailsHelperTest extends AndroidTestCase { assertEquals(text, mViews.nameView.getText().toString()); } - /** Asserts that the number text field contains the given string value. */ - private void assertNumberEquals(String text) { - assertEquals(text, mViews.numberView.getText().toString()); + /** Asserts that the label text field contains the given string value. */ + private void assertLabelEquals(String text) { + assertEquals(text, mViews.labelView.getText().toString()); } /** Asserts that the date text field contains the given string value. */ |
