1
1
/****************************************************************************
2
- * Copyright 2017-2018 , Optimizely, Inc. and contributors *
2
+ * Copyright 2017-2021 , Optimizely, Inc. and contributors *
3
3
* *
4
4
* Licensed under the Apache License, Version 2.0 (the "License"); *
5
5
* you may not use this file except in compliance with the License. *
@@ -166,7 +166,7 @@ public void initializeSyncWithEnvironment() {
166
166
EventHandler eventHandler = mock (DefaultEventHandler .class );
167
167
EventProcessor eventProcessor = mock (EventProcessor .class );
168
168
OptimizelyManager optimizelyManager = new OptimizelyManager (testProjectId , testSdkKey , null , logger , 3600L , datafileHandler , null , 3600L ,
169
- eventHandler , eventProcessor , null , null );
169
+ eventHandler , eventProcessor , null , null , null );
170
170
/*
171
171
* Scenario#1: when datafile is not Empty
172
172
* Scenario#2: when datafile is Empty
@@ -225,7 +225,7 @@ public void initializeAsyncWithEnvironment() {
225
225
EventHandler eventHandler = mock (DefaultEventHandler .class );
226
226
EventProcessor eventProcessor = mock (EventProcessor .class );
227
227
final OptimizelyManager optimizelyManager = new OptimizelyManager (testProjectId , testSdkKey , null , logger , 3600L , datafileHandler , null , 3600L ,
228
- eventHandler , eventProcessor , null , null );
228
+ eventHandler , eventProcessor , null , null , null );
229
229
230
230
/*
231
231
* Scenario#1: when datafile is not Empty
@@ -515,7 +515,7 @@ public void initializeSyncWithUpdateOnNewDatafileDisabled() {
515
515
Context context = InstrumentationRegistry .getInstrumentation ().getTargetContext ();
516
516
517
517
OptimizelyManager manager = new OptimizelyManager (testProjectId , testSdkKey , null , logger , pollingInterval , datafileHandler , null , 0 ,
518
- null , null , null , null );
518
+ null , null , null , null , null );
519
519
520
520
doAnswer (
521
521
new Answer <Object >() {
@@ -548,7 +548,7 @@ public void initializeSyncWithUpdateOnNewDatafileEnabled() {
548
548
Context context = InstrumentationRegistry .getInstrumentation ().getTargetContext ();
549
549
550
550
OptimizelyManager manager = new OptimizelyManager (testProjectId , testSdkKey , null , logger , pollingInterval , datafileHandler , null , 0 ,
551
- null , null , null , null );
551
+ null , null , null , null , null );
552
552
553
553
doAnswer (
554
554
new Answer <Object >() {
@@ -581,7 +581,7 @@ public void initializeSyncWithDownloadToCacheDisabled() {
581
581
Context context = InstrumentationRegistry .getInstrumentation ().getTargetContext ();
582
582
583
583
OptimizelyManager manager = new OptimizelyManager (testProjectId , testSdkKey , null , logger , pollingInterval , datafileHandler , null , 0 ,
584
- null , null , null , null );
584
+ null , null , null , null , null );
585
585
586
586
doAnswer (
587
587
new Answer <Object >() {
@@ -614,7 +614,7 @@ public void initializeSyncWithUpdateOnNewDatafileDisabledWithPeriodicPollingEnab
614
614
Context context = InstrumentationRegistry .getInstrumentation ().getTargetContext ();
615
615
616
616
OptimizelyManager manager = new OptimizelyManager (testProjectId , testSdkKey , null , logger , pollingInterval , datafileHandler , null , 0 ,
617
- null , null , null , null );
617
+ null , null , null , null , null );
618
618
619
619
doAnswer (
620
620
(Answer <Object >) invocation -> {
@@ -646,7 +646,7 @@ public void initializeSyncWithUpdateOnNewDatafileEnabledWithPeriodicPollingEnabl
646
646
Context context = InstrumentationRegistry .getInstrumentation ().getTargetContext ();
647
647
648
648
OptimizelyManager manager = new OptimizelyManager (testProjectId , testSdkKey , null , logger , pollingInterval , datafileHandler , null , 0 ,
649
- null , null , null , null );
649
+ null , null , null , null , null );
650
650
651
651
doAnswer (
652
652
new Answer <Object >() {
@@ -679,7 +679,7 @@ public void initializeSyncWithUpdateOnNewDatafileDisabledWithPeriodicPollingDisa
679
679
Context context = InstrumentationRegistry .getInstrumentation ().getTargetContext ();
680
680
681
681
OptimizelyManager manager = new OptimizelyManager (testProjectId , testSdkKey , null , logger , pollingInterval , datafileHandler , null , 0 ,
682
- null , null , null , null );
682
+ null , null , null , null , null );
683
683
684
684
doAnswer (
685
685
new Answer <Object >() {
@@ -713,7 +713,7 @@ public void initializeSyncWithUpdateOnNewDatafileEnabledWithPeriodicPollingDisab
713
713
Context context = InstrumentationRegistry .getInstrumentation ().getTargetContext ();
714
714
715
715
OptimizelyManager manager = new OptimizelyManager (testProjectId , testSdkKey , null , logger , pollingInterval , datafileHandler , null , 0 ,
716
- null , null , null , null );
716
+ null , null , null , null , null );
717
717
718
718
doAnswer (
719
719
new Answer <Object >() {
@@ -746,7 +746,7 @@ public void initializeSyncWithResourceDatafileNoCache() {
746
746
Context context = InstrumentationRegistry .getInstrumentation ().getTargetContext ();
747
747
748
748
OptimizelyManager manager = spy (new OptimizelyManager (testProjectId , testSdkKey , null , logger , pollingInterval , datafileHandler , null , 0 ,
749
- null , null , null , null ));
749
+ null , null , null , null , null ));
750
750
751
751
datafileHandler .removeSavedDatafile (context , manager .getDatafileConfig ());
752
752
OptimizelyClient client = manager .initialize (context , R .raw .datafile , downloadToCache , updateConfigOnNewDatafile );
@@ -763,7 +763,7 @@ public void initializeSyncWithResourceDatafileNoCacheWithDefaultParams() {
763
763
Context context = InstrumentationRegistry .getInstrumentation ().getTargetContext ();
764
764
765
765
OptimizelyManager manager = spy (new OptimizelyManager (testProjectId , testSdkKey , null , logger , pollingInterval , datafileHandler , null , 0 ,
766
- null , null , null , null ));
766
+ null , null , null , null , null ));
767
767
768
768
datafileHandler .removeSavedDatafile (context , manager .getDatafileConfig ());
769
769
OptimizelyClient client = manager .initialize (context , R .raw .datafile );
0 commit comments