@@ -568,21 +568,6 @@ public void activateWithUnknownExperimentKeyAndNoOpErrorHandler() throws Excepti
568568 assertNull (actualVariation );
569569 }
570570
571- /**
572- * Verify that {@link Optimizely#activate(String, String)} handles the case where an unknown experiment
573- * (i.e., not in the config) is passed through and a {@link RaiseExceptionErrorHandler} is provided.
574- * DUPE? I think this is testing RaiseExceptionErrorHandler.
575- */
576- @ Test
577- public void activateWithUnknownExperimentKeyAndRaiseExceptionErrorHandler () throws Exception {
578- thrown .expect (UnknownExperimentException .class );
579-
580- Experiment unknownExperiment = createUnknownExperiment ();
581-
582- Optimizely optimizely = optimizelyBuilder .withErrorHandler (new RaiseExceptionErrorHandler ()).build ();
583- optimizely .activate (unknownExperiment .getKey (), testUserId );
584- }
585-
586571 /**
587572 * Verify that {@link Optimizely#activate(String, String, Map)} passes through attributes.
588573 */
@@ -631,10 +616,9 @@ public void activateWithTypedAttributes() throws Exception {
631616 * Verify that {@link Optimizely#activate(String, String, Map<String, String>)} handles the case
632617 * where an unknown attribute (i.e., not in the config) is passed through.
633618 * <p>
634- * In this case, the activate call should not remove the unknown attribute from the given map.
619+ * In this case, the eventual payload will NOT include the unknownAttribute
635620 */
636621 @ Test
637- @ Ignore ("Kind of a silly test since the event factory strips these unknownAttributes out before sending." )
638622 @ SuppressWarnings ("unchecked" )
639623 public void activateWithUnknownAttribute () throws Exception {
640624 Experiment activatedExperiment = validProjectConfig .getExperiments ().get (0 );
@@ -643,20 +627,14 @@ public void activateWithUnknownAttribute() throws Exception {
643627 Map <String , String > testUserAttributes = new HashMap <>();
644628 testUserAttributes .put ("unknownAttribute" , "dimValue" );
645629
646- if (datafileVersion >= 4 ) {
647- testUserAttributes .put (ATTRIBUTE_HOUSE_KEY , AUDIENCE_GRYFFINDOR_VALUE );
648- } else {
649- testUserAttributes .put ("browser_type" , "chrome" );
650- }
651-
652630 logbackVerifier .expectMessage (Level .INFO , "Activating user \" userId\" in experiment \" " +
653631 activatedExperiment .getKey () + "\" ." );
654632
655633 Optimizely optimizely = optimizelyBuilder .withErrorHandler (new RaiseExceptionErrorHandler ()).build ();
656634 Variation actualVariation = optimizely .activate (activatedExperiment .getKey (), testUserId , testUserAttributes );
657635 assertThat (actualVariation , is (bucketedVariation ));
658636
659- eventHandler .expectImpression (activatedExperiment .getId (), actualVariation .getId (), testUserId , testUserAttributes );
637+ eventHandler .expectImpression (activatedExperiment .getId (), actualVariation .getId (), testUserId );
660638 }
661639
662640 /**
@@ -959,7 +937,6 @@ public void activateExperimentStatusPrecedesForcedVariation() throws Exception {
959937 * {@link EventHandler#dispatchEvent(LogEvent)} gracefully.
960938 */
961939 @ Test
962- @ Ignore ("Not sure why this is broken" )
963940 public void activateDispatchEventThrowsException () throws Exception {
964941 Experiment experiment = noAudienceProjectConfig .getExperiments ().get (0 );
965942
@@ -1288,7 +1265,6 @@ public void trackEventWithNoValidExperiments() throws Exception {
12881265 * {@link EventHandler#dispatchEvent(LogEvent)} gracefully.
12891266 */
12901267 @ Test
1291- @ Ignore ("Not sure why this is failing ATM." )
12921268 public void trackDispatchEventThrowsException () throws Exception {
12931269 EventType eventType = noAudienceProjectConfig .getEventTypes ().get (0 );
12941270
@@ -1305,7 +1281,6 @@ public void trackDispatchEventThrowsException() throws Exception {
13051281 * dispatches events even if the event links only to launched experiments
13061282 */
13071283 @ Test
1308- // @Ignore("Is this a bug??")
13091284 public void trackDoesNotSendEventWhenExperimentsAreLaunchedOnly () throws Exception {
13101285 EventType eventType = datafileVersion >= 4 ?
13111286 noAudienceProjectConfig .getEventNameMapping ().get (EVENT_LAUNCHED_EXPERIMENT_ONLY_KEY ) :
0 commit comments