summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorJames Lemieux <jplemieux@google.com>2014-01-22 15:29:46 -0800
committerJames Lemieux <jplemieux@google.com>2014-01-22 23:56:17 +0000
commite89ec9216167fa7246ae268f2b2062e0a93621bf (patch)
treeb204a63dca30fbb5fb9dc61674246e0113c44c6b /tests/src
parent70a8aecc56c2a0cfa0629a7b7d0716b1d2b527a5 (diff)
downloadandroid_packages_apps_Exchange-e89ec9216167fa7246ae268f2b2062e0a93621bf.tar.gz
android_packages_apps_Exchange-e89ec9216167fa7246ae268f2b2062e0a93621bf.tar.bz2
android_packages_apps_Exchange-e89ec9216167fa7246ae268f2b2062e0a93621bf.zip
Eliminate redundant methods in Address class
THIS DOES NOT CHANGE ANY EXISTING FUNCTIONALITY. Address.pack() has been removed and all calls replaced with its synonym Address.toHeader(). Address.unpack() has been renamed to Address.fromHeader() to follow the new naming convention. In days of yore, pack() and toHeader() used to do different things. Now they are identical and thus one is superfluous. We have standardized on toHeader() and fromHeader(). Change-Id: I233a139da7aa03602b76f931b03cdd0e8414d242
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/com/android/exchange/utility/CalendarUtilitiesTests.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/src/com/android/exchange/utility/CalendarUtilitiesTests.java b/tests/src/com/android/exchange/utility/CalendarUtilitiesTests.java
index 41b23e6f..4501bff1 100644
--- a/tests/src/com/android/exchange/utility/CalendarUtilitiesTests.java
+++ b/tests/src/com/android/exchange/utility/CalendarUtilitiesTests.java
@@ -307,7 +307,7 @@ public class CalendarUtilitiesTests extends AndroidTestCase {
assertNotNull(msg);
// Now check some of the fields of the message
- assertEquals(Address.pack(new Address[] {new Address(ORGANIZER)}), msg.mTo);
+ assertEquals(Address.toHeader(new Address[] {new Address(ORGANIZER)}), msg.mTo);
Resources resources = getContext().getResources();
String accept = resources.getString(R.string.meeting_accepted, title);
assertEquals(accept, msg.mSubject);
@@ -353,7 +353,7 @@ public class CalendarUtilitiesTests extends AndroidTestCase {
assertNotNull(msg);
// Now check some of the fields of the message
- assertEquals(Address.pack(new Address[] {new Address(ATTENDEE)}), msg.mTo);
+ assertEquals(Address.toHeader(new Address[] {new Address(ATTENDEE)}), msg.mTo);
assertEquals(title, msg.mSubject);
// And make sure we have an attachment
@@ -415,7 +415,7 @@ public class CalendarUtilitiesTests extends AndroidTestCase {
assertNotNull(msg);
// Now check some of the fields of the message
- assertEquals(Address.pack(new Address[] {new Address(ATTENDEE)}), msg.mTo);
+ assertEquals(Address.toHeader(new Address[] {new Address(ATTENDEE)}), msg.mTo);
assertEquals(title, msg.mSubject);
// And make sure we have an attachment
@@ -481,7 +481,7 @@ public class CalendarUtilitiesTests extends AndroidTestCase {
assertNotNull(msg);
// Now check some of the fields of the message
- assertEquals(Address.pack(new Address[] {new Address(ATTENDEE)}), msg.mTo);
+ assertEquals(Address.toHeader(new Address[] {new Address(ATTENDEE)}), msg.mTo);
assertEquals(title, msg.mSubject);
// And make sure we have an attachment
@@ -562,7 +562,7 @@ public class CalendarUtilitiesTests extends AndroidTestCase {
assertNotNull(msg);
// Now check some of the fields of the message
- assertEquals(Address.pack(new Address[] {new Address(ATTENDEE)}), msg.mTo);
+ assertEquals(Address.toHeader(new Address[] {new Address(ATTENDEE)}), msg.mTo);
String cancel = getContext().getResources().getString(R.string.meeting_canceled, title);
assertEquals(cancel, msg.mSubject);