@@ -504,7 +504,7 @@ public void activateForNullVariation() throws Exception {
504504 Experiment activatedExperiment = validProjectConfig .getExperiments ().get (0 );
505505 Map <String , String > testUserAttributes = Collections .singletonMap ("browser_type" , "chromey" );
506506
507- when (mockBucketer .bucket (eq (activatedExperiment ), eq (testUserId ), eq (validProjectConfig ))).thenReturn (DecisionResponse .nullNoReasons ());
507+ when (mockBucketer .bucket (eq (activatedExperiment ), eq (testUserId ), eq (validProjectConfig ), any ( DecisionPath . class ) )).thenReturn (DecisionResponse .nullNoReasons ());
508508
509509 logbackVerifier .expectMessage (Level .INFO , "Not activating user \" userId\" for experiment \" " +
510510 activatedExperiment .getKey () + "\" ." );
@@ -1381,7 +1381,7 @@ public void getVariation() throws Exception {
13811381
13821382 Optimizely optimizely = optimizelyBuilder .withBucketing (mockBucketer ).build ();
13831383
1384- when (mockBucketer .bucket (eq (activatedExperiment ), eq (testUserId ), eq (validProjectConfig ))).thenReturn (DecisionResponse .responseNoReasons (bucketedVariation ));
1384+ when (mockBucketer .bucket (eq (activatedExperiment ), eq (testUserId ), eq (validProjectConfig ), any ( DecisionPath . class ) )).thenReturn (DecisionResponse .responseNoReasons (bucketedVariation ));
13851385
13861386 Map <String , String > testUserAttributes = new HashMap <>();
13871387 testUserAttributes .put ("browser_type" , "chrome" );
@@ -1391,7 +1391,7 @@ public void getVariation() throws Exception {
13911391 testUserAttributes );
13921392
13931393 // verify that the bucketing algorithm was called correctly
1394- verify (mockBucketer ).bucket (eq (activatedExperiment ), eq (testUserId ), eq (validProjectConfig ));
1394+ verify (mockBucketer ).bucket (eq (activatedExperiment ), eq (testUserId ), eq (validProjectConfig ), any ( DecisionPath . class ) );
13951395 assertThat (actualVariation , is (bucketedVariation ));
13961396
13971397 // verify that we didn't attempt to dispatch an event
@@ -1412,13 +1412,13 @@ public void getVariationWithExperimentKey() throws Exception {
14121412 .withConfig (noAudienceProjectConfig )
14131413 .build ();
14141414
1415- when (mockBucketer .bucket (eq (activatedExperiment ), eq (testUserId ), eq (noAudienceProjectConfig ))).thenReturn (DecisionResponse .responseNoReasons (bucketedVariation ));
1415+ when (mockBucketer .bucket (eq (activatedExperiment ), eq (testUserId ), eq (noAudienceProjectConfig ), any ( DecisionPath . class ) )).thenReturn (DecisionResponse .responseNoReasons (bucketedVariation ));
14161416
14171417 // activate the experiment
14181418 Variation actualVariation = optimizely .getVariation (activatedExperiment .getKey (), testUserId );
14191419
14201420 // verify that the bucketing algorithm was called correctly
1421- verify (mockBucketer ).bucket (eq (activatedExperiment ), eq (testUserId ), eq (noAudienceProjectConfig ));
1421+ verify (mockBucketer ).bucket (eq (activatedExperiment ), eq (testUserId ), eq (noAudienceProjectConfig ), any ( DecisionPath . class ) );
14221422 assertThat (actualVariation , is (bucketedVariation ));
14231423
14241424 // verify that we didn't attempt to dispatch an event
@@ -1473,7 +1473,7 @@ public void getVariationWithAudiences() throws Exception {
14731473 Experiment experiment = validProjectConfig .getExperiments ().get (0 );
14741474 Variation bucketedVariation = experiment .getVariations ().get (0 );
14751475
1476- when (mockBucketer .bucket (eq (experiment ), eq (testUserId ), eq (validProjectConfig ))).thenReturn (DecisionResponse .responseNoReasons (bucketedVariation ));
1476+ when (mockBucketer .bucket (eq (experiment ), eq (testUserId ), eq (validProjectConfig ), any ( DecisionPath . class ) )).thenReturn (DecisionResponse .responseNoReasons (bucketedVariation ));
14771477
14781478 Optimizely optimizely = optimizelyBuilder .withBucketing (mockBucketer ).build ();
14791479
@@ -1482,7 +1482,7 @@ public void getVariationWithAudiences() throws Exception {
14821482
14831483 Variation actualVariation = optimizely .getVariation (experiment .getKey (), testUserId , testUserAttributes );
14841484
1485- verify (mockBucketer ).bucket (eq (experiment ), eq (testUserId ), eq (validProjectConfig ));
1485+ verify (mockBucketer ).bucket (eq (experiment ), eq (testUserId ), eq (validProjectConfig ), any ( DecisionPath . class ) );
14861486 assertThat (actualVariation , is (bucketedVariation ));
14871487 }
14881488
@@ -1523,7 +1523,7 @@ public void getVariationNoAudiences() throws Exception {
15231523 Experiment experiment = noAudienceProjectConfig .getExperiments ().get (0 );
15241524 Variation bucketedVariation = experiment .getVariations ().get (0 );
15251525
1526- when (mockBucketer .bucket (eq (experiment ), eq (testUserId ), eq (noAudienceProjectConfig ))).thenReturn (DecisionResponse .responseNoReasons (bucketedVariation ));
1526+ when (mockBucketer .bucket (eq (experiment ), eq (testUserId ), eq (noAudienceProjectConfig ), any ( DecisionPath . class ) )).thenReturn (DecisionResponse .responseNoReasons (bucketedVariation ));
15271527
15281528 Optimizely optimizely = optimizelyBuilder
15291529 .withConfig (noAudienceProjectConfig )
@@ -1532,7 +1532,7 @@ public void getVariationNoAudiences() throws Exception {
15321532
15331533 Variation actualVariation = optimizely .getVariation (experiment .getKey (), testUserId );
15341534
1535- verify (mockBucketer ).bucket (eq (experiment ), eq (testUserId ), eq (noAudienceProjectConfig ));
1535+ verify (mockBucketer ).bucket (eq (experiment ), eq (testUserId ), eq (noAudienceProjectConfig ), any ( DecisionPath . class ) );
15361536 assertThat (actualVariation , is (bucketedVariation ));
15371537 }
15381538
@@ -1590,7 +1590,7 @@ public void getVariationForGroupExperimentWithMatchingAttributes() throws Except
15901590 attributes .put ("browser_type" , "chrome" );
15911591 }
15921592
1593- when (mockBucketer .bucket (eq (experiment ), eq ("user" ), eq (validProjectConfig ))).thenReturn (DecisionResponse .responseNoReasons (variation ));
1593+ when (mockBucketer .bucket (eq (experiment ), eq ("user" ), eq (validProjectConfig ), any ( DecisionPath . class ) )).thenReturn (DecisionResponse .responseNoReasons (variation ));
15941594
15951595 Optimizely optimizely = optimizelyBuilder .withBucketing (mockBucketer ).build ();
15961596
0 commit comments