Skip to content

Commit

Permalink
skip enycption migration to speed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
githengi committed Feb 22, 2021
1 parent 35ea7f2 commit 3907e01
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.robolectric.annotation.Config;
import org.smartregister.reveal.shadow.AsyncTaskShadow;
import org.smartregister.reveal.shadow.CloudantDataHandlerShadowUtils;
import org.smartregister.reveal.shadow.CoreLibraryShadow;
import org.smartregister.reveal.shadow.CredentialsHelperShadow;
import org.smartregister.reveal.shadow.CustomFontTextViewShadow;
import org.smartregister.reveal.shadow.GeoJsonSourceShadow;
Expand All @@ -34,7 +35,7 @@
MapViewShadow.class, KujakuMapViewShadow.class, RevealMapViewShadow.class,
LayerShadow.class, SymbolLayerShadow.class, LineLayerShadow.class,
GeoJsonSourceShadow.class, SourceShadow.class, OfflineManagerShadow.class,
AsyncTaskShadow.class, CloudantDataHandlerShadowUtils.class, CredentialsHelperShadow.class}, sdk = Build.VERSION_CODES.P)
AsyncTaskShadow.class, CloudantDataHandlerShadowUtils.class, CoreLibraryShadow.class, CredentialsHelperShadow.class}, sdk = Build.VERSION_CODES.P)
public abstract class BaseUnitTest {

@Rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void onCreate() {
SyncConfiguration syncConfiguration = spy(new RevealSyncConfiguration());
when(syncConfiguration.runPlanEvaluationOnClientProcessing()).thenReturn(false);
CoreLibrary.init(context, syncConfiguration);

ConfigurableViewsLibrary.init(context);

FamilyLibrary.init(context, getMetadata(), BuildConfig.VERSION_CODE, BuildConfig.DATABASE_VERSION);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.smartregister.reveal.shadow;

import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.smartregister.CoreLibrary;

/**
* Created by samuelgithengi on 12/2/20.
*/
@Implements(CoreLibrary.class)
public class CoreLibraryShadow {

@Implementation
private static void checkPlatformMigrations() {
//do nothing
}
}

0 comments on commit 3907e01

Please sign in to comment.