Merge "Fix unit tests"
This commit is contained in:
commit
04fb27841c
@ -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