Skip to content

Commit

Permalink
chore: change to preset app install channel attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoweii committed Apr 10, 2024
1 parent 45d5f29 commit 2ecc64e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public void testAddGlobalAttributeForTrafficSource() throws Exception {
@Test
public void testDeleteGlobalAttribute() throws Exception {
ClickstreamAttribute globalAttribute = ClickstreamAttribute.builder()
.add("channel", "HUAWEI")
.add(ClickstreamAnalytics.Attr.APP_INSTALL_CHANNEL, "Amazon Store")
.add("level", 5.1)
.add("class", 6)
.add("isOpenNotification", true)
Expand All @@ -382,7 +382,7 @@ public void testDeleteGlobalAttribute() throws Exception {
JSONObject jsonObject = new JSONObject(eventString);
JSONObject attribute = jsonObject.getJSONObject("attributes");

Assert.assertEquals("HUAWEI", attribute.getString("channel"));
Assert.assertEquals("Amazon Store", attribute.getString("channel"));
Assert.assertFalse(attribute.has("level"));
Assert.assertTrue(attribute.getBoolean("isOpenNotification"));
}
Expand Down

0 comments on commit 2ecc64e

Please sign in to comment.