@@ -87,7 +87,7 @@ public EventFactoryTest(int datafileVersion,
87
87
88
88
@ After
89
89
public void tearDown () {
90
- ClientEngineInfo .setClientEngine ( EventBatch . ClientEngine . JAVA_SDK );
90
+ ClientEngineInfo .setClientEngineName ( ClientEngineInfo . DEFAULT_NAME );
91
91
}
92
92
93
93
/**
@@ -554,7 +554,7 @@ public void createImpressionEventIgnoresNullAttributes() {
554
554
*/
555
555
@ Test
556
556
public void createImpressionEventAndroidClientEngineClientVersion () throws Exception {
557
- ClientEngineInfo .setClientEngine ( EventBatch . ClientEngine . ANDROID_SDK );
557
+ ClientEngineInfo .setClientEngineName ( "android-sdk" );
558
558
ProjectConfig projectConfig = validProjectConfigV2 ();
559
559
Experiment activatedExperiment = projectConfig .getExperiments ().get (0 );
560
560
Variation bucketedVariation = activatedExperiment .getVariations ().get (0 );
@@ -566,7 +566,7 @@ public void createImpressionEventAndroidClientEngineClientVersion() throws Excep
566
566
userId , attributeMap );
567
567
EventBatch impression = gson .fromJson (impressionEvent .getBody (), EventBatch .class );
568
568
569
- assertThat (impression .getClientName (), is (EventBatch . ClientEngine . ANDROID_SDK . getClientEngineValue () ));
569
+ assertThat (impression .getClientName (), is ("android-sdk" ));
570
570
// assertThat(impression.getClientVersion(), is("0.0.0"));
571
571
}
572
572
@@ -577,7 +577,7 @@ public void createImpressionEventAndroidClientEngineClientVersion() throws Excep
577
577
@ Test
578
578
public void createImpressionEventAndroidTVClientEngineClientVersion () throws Exception {
579
579
String clientVersion = "0.0.0" ;
580
- ClientEngineInfo .setClientEngine ( EventBatch . ClientEngine . ANDROID_TV_SDK );
580
+ ClientEngineInfo .setClientEngineName ( "android-tv-sdk" );
581
581
ProjectConfig projectConfig = validProjectConfigV2 ();
582
582
Experiment activatedExperiment = projectConfig .getExperiments ().get (0 );
583
583
Variation bucketedVariation = activatedExperiment .getVariations ().get (0 );
@@ -589,7 +589,7 @@ public void createImpressionEventAndroidTVClientEngineClientVersion() throws Exc
589
589
userId , attributeMap );
590
590
EventBatch impression = gson .fromJson (impressionEvent .getBody (), EventBatch .class );
591
591
592
- assertThat (impression .getClientName (), is (EventBatch . ClientEngine . ANDROID_TV_SDK . getClientEngineValue () ));
592
+ assertThat (impression .getClientName (), is ("android-tv-sdk" ));
593
593
// assertThat(impression.getClientVersion(), is(clientVersion));
594
594
}
595
595
@@ -816,7 +816,7 @@ public void createConversionEventExperimentStatusPrecedesForcedVariation() {
816
816
*/
817
817
@ Test
818
818
public void createConversionEventAndroidClientEngineClientVersion () throws Exception {
819
- ClientEngineInfo .setClientEngine ( EventBatch . ClientEngine . ANDROID_SDK );
819
+ ClientEngineInfo .setClientEngineName ( "android-sdk" );
820
820
Attribute attribute = validProjectConfig .getAttributes ().get (0 );
821
821
EventType eventType = validProjectConfig .getEventTypes ().get (0 );
822
822
@@ -838,7 +838,7 @@ public void createConversionEventAndroidClientEngineClientVersion() throws Excep
838
838
839
839
EventBatch conversion = gson .fromJson (conversionEvent .getBody (), EventBatch .class );
840
840
841
- assertThat (conversion .getClientName (), is (EventBatch . ClientEngine . ANDROID_SDK . getClientEngineValue () ));
841
+ assertThat (conversion .getClientName (), is ("android-sdk" ));
842
842
// assertThat(conversion.getClientVersion(), is("0.0.0"));
843
843
}
844
844
@@ -849,7 +849,7 @@ public void createConversionEventAndroidClientEngineClientVersion() throws Excep
849
849
@ Test
850
850
public void createConversionEventAndroidTVClientEngineClientVersion () throws Exception {
851
851
String clientVersion = "0.0.0" ;
852
- ClientEngineInfo .setClientEngine ( EventBatch . ClientEngine . ANDROID_TV_SDK );
852
+ ClientEngineInfo .setClientEngineName ( "android-tv-sdk" );
853
853
ProjectConfig projectConfig = validProjectConfigV2 ();
854
854
Attribute attribute = projectConfig .getAttributes ().get (0 );
855
855
EventType eventType = projectConfig .getEventTypes ().get (0 );
@@ -873,7 +873,7 @@ public void createConversionEventAndroidTVClientEngineClientVersion() throws Exc
873
873
874
874
EventBatch conversion = gson .fromJson (conversionEvent .getBody (), EventBatch .class );
875
875
876
- assertThat (conversion .getClientName (), is (EventBatch . ClientEngine . ANDROID_TV_SDK . getClientEngineValue () ));
876
+ assertThat (conversion .getClientName (), is ("android-tv-sdk" ));
877
877
// assertThat(conversion.getClientVersion(), is(clientVersion));
878
878
}
879
879
0 commit comments