summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-11-25 18:35:06 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-11-25 18:35:07 +0000
commitb3c6951e15865ac5a9007d281e12f380a16967e8 (patch)
treed7189c8939792c09441cef51e2876e329a867fb6 /tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java
parente43f8e97a6f37dc23ce13dbfbf0483f1d1f737d3 (diff)
parent3671725b58a9768016e141c77424dedb5fd2c55a (diff)
downloadandroid_packages_apps_Dialer-b3c6951e15865ac5a9007d281e12f380a16967e8.tar.gz
android_packages_apps_Dialer-b3c6951e15865ac5a9007d281e12f380a16967e8.tar.bz2
android_packages_apps_Dialer-b3c6951e15865ac5a9007d281e12f380a16967e8.zip
Merge "Fix Dialer tests"
Diffstat (limited to 'tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java')
-rw-r--r--tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java b/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java
index 6a9817f26..6f5a98658 100644
--- a/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java
+++ b/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java
@@ -51,6 +51,8 @@ public class PhoneCallDetailsHelperTest extends AndroidTestCase {
private static final String TEST_COUNTRY_ISO = "US";
/** The geocoded location used in the tests. */
private static final String TEST_GEOCODE = "United States";
+ /** Empty geocode label */
+ private static final String EMPTY_GEOCODE = "";
/** The object under test. */
private PhoneCallDetailsHelper mHelper;
@@ -183,18 +185,18 @@ public class PhoneCallDetailsHelperTest extends AndroidTestCase {
public void testSetPhoneCallDetails_NoGeocode() {
setPhoneCallDetailsWithNumberAndGeocode("+14125555555", "1-412-555-5555", null);
assertNameEquals("1-412-555-5555"); // The phone number is shown as the name.
- assertLabelEquals("-"); // The empty geocode is shown as the label.
+ assertLabelEquals(EMPTY_GEOCODE); // 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.
- assertLabelEquals("-"); // The empty geocode is shown as the label.
+ assertLabelEquals(EMPTY_GEOCODE); // The empty geocode is shown as the label.
}
public void testSetPhoneCallDetails_NoGeocodeForVoicemail() {
setPhoneCallDetailsWithNumberAndGeocode(TEST_VOICEMAIL_NUMBER, "", "United States");
- assertLabelEquals("-"); // The empty geocode is shown as the label.
+ assertLabelEquals(EMPTY_GEOCODE); // The empty geocode is shown as the label.
}
public void testSetPhoneCallDetails_Highlighted() {