Skip to content

Commit 470aedc

Browse files
committed
Remove E2E test from de SDK solution
Remove E2E test from de SDK solution
1 parent d16929f commit 470aedc

File tree

2 files changed

+2
-59
lines changed

2 files changed

+2
-59
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ packages
2626
*.jar
2727
*.xccheckout
2828
deriveddata
29+
30+
*.iml

test/Android/ZumoE2ETestApp/src/main/java/com/microsoft/windowsazure/mobileservices/zumoe2etestapp/tests/OfflineTests.java

-59
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,8 @@ public OfflineTests() {
8181

8282
this.addTest(createClearStoreTest());
8383

84-
8584
this.addTest(createBasicTest("Basic Test"));
8685

87-
this.addTest(testOperationErrorLoadCorrectly());
88-
8986
this.addTest(createNoCollapseInsertOnPreviousPushError("No collapse insert on previous push error"));
9087

9188
this.addTest(createLocallyDeleteAlreadyDeletedElementTest());
@@ -1093,62 +1090,6 @@ protected void executeTest(MobileServiceClient offlineReadyClient, final TestExe
10931090
return test;
10941091
}
10951092

1096-
private TestCase testOperationErrorLoadCorrectly() {
1097-
1098-
final TestCase test = new TestCase() {
1099-
1100-
@Override
1101-
protected void executeTest(MobileServiceClient offlineReadyClient, final TestExecutionCallback callback) {
1102-
1103-
TestCase testCase = this;
1104-
TestResult result = new TestResult();
1105-
result.setStatus(TestStatus.Passed);
1106-
result.setTestCase(testCase);
1107-
try {
1108-
1109-
log("Initialize store");
1110-
1111-
SQLiteLocalStore localStore = new SQLiteLocalStore(offlineReadyClient.getContext(), OFFLINE_TABLE_NAME, null, 1);
1112-
1113-
OperationErrorList.initializeStore(localStore);
1114-
1115-
localStore.initialize();
1116-
1117-
1118-
log("Add two Operation Errors");
1119-
1120-
OperationErrorList operationErrorList = OperationErrorList.load(localStore);
1121-
1122-
TableOperationError tableOperationError = new TableOperationError("Id1", TableOperationKind.Update, "Table1", "ItemId", null, "Message", 400, "ServerResponse", null);
1123-
1124-
operationErrorList.add(tableOperationError);
1125-
1126-
TableOperationError tableOperationError2 = new TableOperationError("Id1", TableOperationKind.Update, "Table1", "ItemId", new JsonObject(), "Message", 400, "ServerResponse", new JsonObject());
1127-
1128-
operationErrorList.add(tableOperationError2);
1129-
1130-
offlineReadyClient.getSyncContext().initialize(localStore, new SimpleSyncHandler()).get();
1131-
1132-
operationErrorList.clear();
1133-
1134-
log("Done");
1135-
1136-
callback.onTestComplete(this, result);
1137-
1138-
} catch (Exception e) {
1139-
callback.onTestComplete(this, createResultFromException(e));
1140-
return;
1141-
}
1142-
}
1143-
1144-
;
1145-
};
1146-
1147-
test.setName("Test Operation Error Load Correctly");
1148-
1149-
return test;
1150-
}
1151-
11521093
private TestCase createSyncConflictTest(final boolean autoResolve) {
11531094

11541095
final String tableName = "offlineReady";

0 commit comments

Comments
 (0)