Fix unit tests
Bug: 3280929 Bug: 3280926 Bug: 3280921 Change-Id: Id81baecf6f1f0c7fedd9d6d623f664f49861fb25
This commit is contained in:
parent
369daac5c3
commit
171b9cb1f5
@ -16,9 +16,9 @@
|
|||||||
|
|
||||||
package com.android.exchange.adapter;
|
package com.android.exchange.adapter;
|
||||||
|
|
||||||
import com.android.email.provider.EmailProvider;
|
|
||||||
import com.android.email.provider.EmailContent.Account;
|
import com.android.email.provider.EmailContent.Account;
|
||||||
import com.android.email.provider.EmailContent.Mailbox;
|
import com.android.email.provider.EmailContent.Mailbox;
|
||||||
|
import com.android.email.provider.EmailProvider;
|
||||||
import com.android.exchange.EasSyncService;
|
import com.android.exchange.EasSyncService;
|
||||||
import com.android.exchange.adapter.EmailSyncAdapter.EasEmailSyncParser;
|
import com.android.exchange.adapter.EmailSyncAdapter.EasEmailSyncParser;
|
||||||
import com.android.exchange.provider.MockProvider;
|
import com.android.exchange.provider.MockProvider;
|
||||||
@ -90,8 +90,8 @@ public class SyncAdapterTestCase<T extends AbstractSyncAdapter>
|
|||||||
EasSyncService service = getTestService();
|
EasSyncService service = getTestService();
|
||||||
Constructor<T> c;
|
Constructor<T> c;
|
||||||
try {
|
try {
|
||||||
c = klass.getDeclaredConstructor(new Class[] {Mailbox.class, EasSyncService.class});
|
c = klass.getDeclaredConstructor(new Class[] {EasSyncService.class});
|
||||||
return c.newInstance(service.mMailbox, service);
|
return c.newInstance(service);
|
||||||
} catch (SecurityException e) {
|
} catch (SecurityException e) {
|
||||||
} catch (NoSuchMethodException e) {
|
} catch (NoSuchMethodException e) {
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user