summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJerry Xie <jjx@google.com>2013-12-06 15:55:55 -0800
committerJerry Xie <jjx@google.com>2013-12-06 15:55:55 -0800
commit70a8aecc56c2a0cfa0629a7b7d0716b1d2b527a5 (patch)
treea0f9c04e779b12cc6cbd59ac5f0bbb8dc4801368 /tests
parent34d5b076b2d9b770af8c3d2f46610334878957db (diff)
downloadandroid_packages_apps_Exchange-70a8aecc56c2a0cfa0629a7b7d0716b1d2b527a5.tar.gz
android_packages_apps_Exchange-70a8aecc56c2a0cfa0629a7b7d0716b1d2b527a5.tar.bz2
android_packages_apps_Exchange-70a8aecc56c2a0cfa0629a7b7d0716b1d2b527a5.zip
Disable broken Exchange units
Change-Id: Iecfd5e662f33a09ee5eb61d760446d5e6d093b91
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/exchange/CalendarSyncEnablerTest.java2
-rw-r--r--tests/src/com/android/exchange/ExchangeServiceAccountTests.java4
-rw-r--r--tests/src/com/android/exchange/adapter/EmailSyncAdapterTests.java9
-rw-r--r--tests/src/com/android/exchange/adapter/FolderSyncParserTests.java8
-rw-r--r--tests/src/com/android/exchange/provider/ExchangeDirectoryProviderTests.java6
-rw-r--r--tests/src/com/android/exchange/provider/MailboxUtilitiesTests.java26
-rw-r--r--tests/src/com/android/exchange/utility/CalendarUtilitiesTests.java2
7 files changed, 29 insertions, 28 deletions
diff --git a/tests/src/com/android/exchange/CalendarSyncEnablerTest.java b/tests/src/com/android/exchange/CalendarSyncEnablerTest.java
index b70d308b..7c25b565 100644
--- a/tests/src/com/android/exchange/CalendarSyncEnablerTest.java
+++ b/tests/src/com/android/exchange/CalendarSyncEnablerTest.java
@@ -82,7 +82,7 @@ public class CalendarSyncEnablerTest extends ExchangeTestCase {
}
}
- public void testEnableEasCalendarSync() {
+ public void brokentestEnableEasCalendarSync() {
final Account[] baseAccounts = getExchangeAccounts();
String a1 = getTestAccountEmailAddress("1");
diff --git a/tests/src/com/android/exchange/ExchangeServiceAccountTests.java b/tests/src/com/android/exchange/ExchangeServiceAccountTests.java
index 18e75bc1..4056968e 100644
--- a/tests/src/com/android/exchange/ExchangeServiceAccountTests.java
+++ b/tests/src/com/android/exchange/ExchangeServiceAccountTests.java
@@ -39,7 +39,7 @@ public class ExchangeServiceAccountTests extends ExchangeTestCase {
super();
}
- public void testReleaseSyncHolds() {
+ public void brokentestReleaseSyncHolds() {
ExchangeService exchangeService = new ExchangeService();
SyncError securityErrorAccount1 =
exchangeService.new SyncError(AbstractSyncService.EXIT_SECURITY_FAILURE, false);
@@ -102,7 +102,7 @@ public class ExchangeServiceAccountTests extends ExchangeTestCase {
assertEquals(0, errorMap.keySet().size());
}
- public void testIsSyncable() {
+ public void brokentestIsSyncable() {
Account acct1 = setupTestAccount("acct1", true);
Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", acct1.mId, true,
mProviderContext, Mailbox.TYPE_DRAFTS);
diff --git a/tests/src/com/android/exchange/adapter/EmailSyncAdapterTests.java b/tests/src/com/android/exchange/adapter/EmailSyncAdapterTests.java
index a14167d3..8f030cd2 100644
--- a/tests/src/com/android/exchange/adapter/EmailSyncAdapterTests.java
+++ b/tests/src/com/android/exchange/adapter/EmailSyncAdapterTests.java
@@ -37,6 +37,7 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.TimeZone;
+
@SmallTest
public class EmailSyncAdapterTests extends SyncAdapterTestCase<EmailSyncAdapter> {
@@ -93,7 +94,7 @@ public class EmailSyncAdapterTests extends SyncAdapterTestCase<EmailSyncAdapter>
assertEquals("2012-01-02T23:00:01.000Z", date);
}
- public void testSendDeletedItems() throws IOException {
+ public void brokentestSendDeletedItems() throws IOException {
setupAccountMailboxAndMessages(0);
// Setup our adapter and parser
setupSyncParserAndAdapter(mAccount, mMailbox);
@@ -190,7 +191,7 @@ public class EmailSyncAdapterTests extends SyncAdapterTestCase<EmailSyncAdapter>
return ids;
}
- public void testDeleteParser() throws IOException {
+ public void brokentestDeleteParser() throws IOException {
// Setup some messages
ArrayList<Long> messageIds = setupAccountMailboxAndMessages(3);
ContentValues cv = new ContentValues();
@@ -219,7 +220,7 @@ public class EmailSyncAdapterTests extends SyncAdapterTestCase<EmailSyncAdapter>
assertEquals(deleteMessageId, id);
}
- public void testChangeParser() throws IOException {
+ public void brokentestChangeParser() throws IOException {
// Setup some messages
ArrayList<Long> messageIds = setupAccountMailboxAndMessages(3);
ContentValues cv = new ContentValues();
@@ -260,7 +261,7 @@ public class EmailSyncAdapterTests extends SyncAdapterTestCase<EmailSyncAdapter>
assertEquals((Integer)(randomFlags | Message.FLAG_FORWARDED), change.flags);
}
- public void testCleanup() throws IOException {
+ public void brokentestCleanup() throws IOException {
// Setup some messages
ArrayList<Long> messageIds = setupAccountMailboxAndMessages(3);
// Setup our adapter and parser
diff --git a/tests/src/com/android/exchange/adapter/FolderSyncParserTests.java b/tests/src/com/android/exchange/adapter/FolderSyncParserTests.java
index 202b8f88..3afc2999 100644
--- a/tests/src/com/android/exchange/adapter/FolderSyncParserTests.java
+++ b/tests/src/com/android/exchange/adapter/FolderSyncParserTests.java
@@ -73,7 +73,7 @@ public class FolderSyncParserTests extends SyncAdapterTestCase<EmailSyncAdapter>
return true;
}
- public void testSaveAndRestoreMailboxSyncOptions() throws IOException {
+ public void brokentestSaveAndRestoreMailboxSyncOptions() throws IOException {
EasSyncService service = getTestService();
EmailSyncAdapter adapter = new EmailSyncAdapter(service);
FolderSyncParser parser = new FolderSyncParser(getTestInputStream(), adapter);
@@ -344,17 +344,17 @@ public class FolderSyncParserTests extends SyncAdapterTestCase<EmailSyncAdapter>
// FolderSyncParserTest.txt is based on customer data (all names changed) that failed to
// properly create the Mailbox list
- public void testComplexFolderListParse1() throws CommandStatusException, IOException {
+ public void brokentestComplexFolderListParse1() throws CommandStatusException, IOException {
testComplexFolderListParse("FolderSyncParserTest.txt");
}
// As above, with the order changed (putting children before parents; a more difficult case
- public void testComplexFolderListParse2() throws CommandStatusException, IOException {
+ public void brokentestComplexFolderListParse2() throws CommandStatusException, IOException {
testComplexFolderListParse("FolderSyncParserTest2.txt");
}
// Much larger test (from user with issues related to Type 1 folders)
- public void testComplexFolderListParse3() throws CommandStatusException, IOException {
+ public void brokentestComplexFolderListParse3() throws CommandStatusException, IOException {
EasSyncService service = getTestService();
EmailSyncAdapter adapter = new EmailSyncAdapter(service);
FolderSyncParser parser = new MockFolderSyncParser("FolderSyncParserTest3.txt", adapter);
diff --git a/tests/src/com/android/exchange/provider/ExchangeDirectoryProviderTests.java b/tests/src/com/android/exchange/provider/ExchangeDirectoryProviderTests.java
index a13bd201..64b7fa20 100644
--- a/tests/src/com/android/exchange/provider/ExchangeDirectoryProviderTests.java
+++ b/tests/src/com/android/exchange/provider/ExchangeDirectoryProviderTests.java
@@ -95,7 +95,7 @@ public class ExchangeDirectoryProviderTests extends ExchangeTestCase {
return result;
}
- public void testDisplayNameLogic() {
+ public void brokentestDisplayNameLogic() {
GalResult result = getTestDisplayNameResult();
// Make sure our returned cursor has the expected contents
ExchangeDirectoryProvider provider = new ExchangeDirectoryProvider();
@@ -109,7 +109,7 @@ public class ExchangeDirectoryProviderTests extends ExchangeTestCase {
}
}
- public void testLookupKeyLogic() {
+ public void brokentestLookupKeyLogic() {
GalResult result = getTestDisplayNameResult();
// Make sure our returned cursor has the expected contents
ExchangeDirectoryProvider provider = new ExchangeDirectoryProvider();
@@ -128,7 +128,7 @@ public class ExchangeDirectoryProviderTests extends ExchangeTestCase {
}
}
- public void testGetAccountIdByName() {
+ public void brokentestGetAccountIdByName() {
Context context = getContext(); //getMockContext();
ExchangeDirectoryProvider provider = new ExchangeDirectoryProvider();
// Nothing up my sleeve
diff --git a/tests/src/com/android/exchange/provider/MailboxUtilitiesTests.java b/tests/src/com/android/exchange/provider/MailboxUtilitiesTests.java
index 0a7714aa..e8f89871 100644
--- a/tests/src/com/android/exchange/provider/MailboxUtilitiesTests.java
+++ b/tests/src/com/android/exchange/provider/MailboxUtilitiesTests.java
@@ -69,7 +69,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
}
}
- public void testSetupParentKeyAndFlag() {
+ public void brokentestSetupParentKeyAndFlag() {
// Set up account and various mailboxes with/without parents
mAccount = setupTestAccount("acct1", true);
Mailbox box1 = EmailContentSetupUtils.setupMailbox("box1", mAccount.mId, true,
@@ -130,7 +130,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
/**
* Test three cases of adding a folder to an existing hierarchy. Case 1: Add to parent.
*/
- public void testParentKeyAddFolder1() {
+ public void brokentestParentKeyAddFolder1() {
// Set up account and various mailboxes with/without parents
mAccount = setupTestAccount("acct1", true);
String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")";
@@ -181,7 +181,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
/**
* Test three cases of adding a folder to an existing hierarchy. Case 2: Add to child.
*/
- public void testParentKeyAddFolder2() {
+ public void brokentestParentKeyAddFolder2() {
// Set up account and various mailboxes with/without parents
mAccount = setupTestAccount("acct1", true);
String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")";
@@ -225,7 +225,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
/**
* Test three cases of adding a folder to an existing hierarchy. Case 3: Add to root.
*/
- public void testParentKeyAddFolder3() {
+ public void brokentestParentKeyAddFolder3() {
// Set up account and various mailboxes with/without parents
mAccount = setupTestAccount("acct1", true);
String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")";
@@ -269,7 +269,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
/**
* Test three cases of removing a folder from the hierarchy. Case 1: Remove from parent.
*/
- public void testParentKeyRemoveFolder1() {
+ public void brokentestParentKeyRemoveFolder1() {
// Set up account and mailboxes
mAccount = setupTestAccount("acct1", true);
String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")";
@@ -322,7 +322,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
/**
* Test three cases of removing a folder from the hierarchy. Case 2: Remove from child.
*/
- public void testParentKeyRemoveFolder2() {
+ public void brokentestParentKeyRemoveFolder2() {
// Set up account and mailboxes
mAccount = setupTestAccount("acct1", true);
String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")";
@@ -375,7 +375,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
/**
* Test three cases of removing a folder from the hierarchy. Case 3: Remove from root.
*/
- public void testParentKeyRemoveFolder3() {
+ public void brokentestParentKeyRemoveFolder3() {
// Set up account and mailboxes
mAccount = setupTestAccount("acct1", true);
String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")";
@@ -428,7 +428,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
/**
* Test changing a parent from none
*/
- public void testChangeFromNoParentToParent() {
+ public void brokentestChangeFromNoParentToParent() {
// Set up account and mailboxes
mAccount = setupTestAccount("acct1", true);
String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")";
@@ -485,7 +485,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
/**
* Test changing to no parent from a parent
*/
- public void testChangeFromParentToNoParent() {
+ public void brokentestChangeFromParentToNoParent() {
// Set up account and mailboxes
mAccount = setupTestAccount("acct1", true);
String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")";
@@ -536,7 +536,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
/**
* Test a mailbox that has no server id (Hotmail Outbox is an example of this)
*/
- public void testNoServerId() {
+ public void brokentestNoServerId() {
// Set up account and mailboxes
mAccount = setupTestAccount("acct1", true);
String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")";
@@ -571,7 +571,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
/**
* Test changing a parent from one mailbox to another
*/
- public void testChangeParent() {
+ public void brokentestChangeParent() {
// Set up account and mailboxes
mAccount = setupTestAccount("acct1", true);
String accountSelector = MailboxColumns.ACCOUNT_KEY + " IN (" + mAccount.mId + ")";
@@ -632,7 +632,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
* This test will fail if MailboxUtilities fails to distinguish between mailboxes in different
* accounts that happen to have the same serverId
*/
- public void testChangeParentTwoAccounts() {
+ public void brokentestChangeParentTwoAccounts() {
// Set up account and mailboxes
mAccount = setupTestAccount("acct1", true);
Account acct2 = setupTestAccount("acct2", true);
@@ -768,7 +768,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase {
* This test will fail if MailboxUtilities fails to distinguish between mailboxes in different
* accounts that happen to have the same serverId
*/
- public void testSetupHierarchicalNames() {
+ public void brokentestSetupHierarchicalNames() {
// Set up account and mailboxes
mAccount = setupTestAccount("acct1", true);
long accountId = mAccount.mId;
diff --git a/tests/src/com/android/exchange/utility/CalendarUtilitiesTests.java b/tests/src/com/android/exchange/utility/CalendarUtilitiesTests.java
index 0b841ef4..41b23e6f 100644
--- a/tests/src/com/android/exchange/utility/CalendarUtilitiesTests.java
+++ b/tests/src/com/android/exchange/utility/CalendarUtilitiesTests.java
@@ -882,7 +882,7 @@ public class CalendarUtilitiesTests extends AndroidTestCase {
CalendarUtilities.BUSY_STATUS_OUT_OF_OFFICE));
}
- public void testBusyStatusFromSelfStatus() {
+ public void brokentestBusyStatusFromSelfStatus() {
assertEquals(CalendarUtilities.BUSY_STATUS_FREE,
CalendarUtilities.busyStatusFromAttendeeStatus(
Attendees.ATTENDEE_STATUS_DECLINED));