@@ -65,7 +65,7 @@ public void splitCallWithExistentSplit() {
6565 String existent = "existent" ;
6666
6767 SplitCacheConsumer splitCacheConsumer = mock (SplitCacheConsumer .class );
68- ParsedSplit response = ParsedSplit .createParsedSplitForTests ("FeatureName" , 123 , true , "off" , Lists .newArrayList (getTestCondition ("off" )), "traffic" , 456L , 1 , new HashSet <>(), true );
68+ ParsedSplit response = ParsedSplit .createParsedSplitForTests ("FeatureName" , 123 , true , "off" , Lists .newArrayList (getTestCondition ("off" )), "traffic" , 456L , 1 , new HashSet <>(), false );
6969 when (splitCacheConsumer .get (existent )).thenReturn (response );
7070
7171 SplitManagerImpl splitManager = new SplitManagerImpl (splitCacheConsumer ,
@@ -91,7 +91,7 @@ public void splitCallWithExistentSplitAndConfigs() {
9191 Map <String , String > configurations = new HashMap <>();
9292 configurations .put (Treatments .OFF , "{\" size\" : 30}" );
9393
94- ParsedSplit response = ParsedSplit .createParsedSplitForTests ("FeatureName" , 123 , true , "off" , Lists .newArrayList (getTestCondition ("off" )), "traffic" , 456L , 1 , configurations , new HashSet <>(), true );
94+ ParsedSplit response = ParsedSplit .createParsedSplitForTests ("FeatureName" , 123 , true , "off" , Lists .newArrayList (getTestCondition ("off" )), "traffic" , 456L , 1 , configurations , new HashSet <>(), false );
9595 when (splitCacheConsumer .get (existent )).thenReturn (response );
9696
9797 SplitManagerImpl splitManager = new SplitManagerImpl (splitCacheConsumer ,
@@ -127,7 +127,7 @@ public void splitsCallWithSplit() {
127127 List <ParsedSplit > parsedSplits = Lists .newArrayList ();
128128 SDKReadinessGates gates = mock (SDKReadinessGates .class );
129129 when (gates .isSDKReady ()).thenReturn (false );
130- ParsedSplit response = ParsedSplit .createParsedSplitForTests ("FeatureName" , 123 , true , "off" , Lists .newArrayList (getTestCondition ("off" )), "traffic" , 456L , 1 , new HashSet <>(), true );
130+ ParsedSplit response = ParsedSplit .createParsedSplitForTests ("FeatureName" , 123 , true , "off" , Lists .newArrayList (getTestCondition ("off" )), "traffic" , 456L , 1 , new HashSet <>(), false );
131131 parsedSplits .add (response );
132132
133133 when (splitCacheConsumer .getAll ()).thenReturn (parsedSplits );
@@ -202,7 +202,7 @@ public void splitCallWithExistentSets() {
202202 String existent = "existent" ;
203203 SplitCacheConsumer splitCacheConsumer = mock (SplitCacheConsumer .class );
204204 ParsedSplit response = ParsedSplit .createParsedSplitForTests ("FeatureName" , 123 , true , "off" ,
205- Lists .newArrayList (getTestCondition ("off" )), "traffic" , 456L , 1 , new HashSet <>(Arrays .asList ("set1" , "set2" , "set3" )), true );
205+ Lists .newArrayList (getTestCondition ("off" )), "traffic" , 456L , 1 , new HashSet <>(Arrays .asList ("set1" , "set2" , "set3" )), false );
206206 when (splitCacheConsumer .get (existent )).thenReturn (response );
207207
208208 SplitManagerImpl splitManager = new SplitManagerImpl (splitCacheConsumer ,
@@ -217,7 +217,7 @@ public void splitCallWithEmptySets() {
217217 String existent = "existent" ;
218218 SplitCacheConsumer splitCacheConsumer = mock (SplitCacheConsumer .class );
219219 ParsedSplit response = ParsedSplit .createParsedSplitForTests ("FeatureName" , 123 , true , "off" ,
220- Lists .newArrayList (getTestCondition ("off" )), "traffic" , 456L , 1 , null , true );
220+ Lists .newArrayList (getTestCondition ("off" )), "traffic" , 456L , 1 , null , false );
221221 when (splitCacheConsumer .get (existent )).thenReturn (response );
222222
223223 SplitManagerImpl splitManager = new SplitManagerImpl (splitCacheConsumer ,
@@ -246,10 +246,10 @@ public void ImpressionToggleParseTest() throws IOException {
246246 mock (SDKReadinessGates .class ), TELEMETRY_STORAGE );
247247
248248 SplitView splitView = splitManager .split ("without_impression_toggle" );
249- assertTrue (splitView .trackImpressions );
249+ assertFalse (splitView .impressionsDisabled );
250250 splitView = splitManager .split ("impression_toggle_on" );
251- assertTrue (splitView .trackImpressions );
251+ assertFalse (splitView .impressionsDisabled );
252252 splitView = splitManager .split ("impression_toggle_off" );
253- assertFalse (splitView .trackImpressions );
253+ assertTrue (splitView .impressionsDisabled );
254254 }
255255}
0 commit comments