@@ -35,13 +35,13 @@ class EventsStorageEngineTest {
35
35
for (storeName in storeNames) {
36
36
val snapshot = EventsStorageEngine .getSnapshot(storeName = storeName, clearStore = false )
37
37
assertEquals(1 , snapshot!! .size)
38
- assertEquals(" telemetry" , snapshot!! .first().category)
39
- assertEquals(" test_event_no_optional" , snapshot!! .first().name)
40
- assertEquals(" test_event_object" , snapshot!! .first().objectId)
38
+ assertEquals(" telemetry" , snapshot.first().category)
39
+ assertEquals(" test_event_no_optional" , snapshot.first().name)
40
+ assertEquals(" test_event_object" , snapshot.first().objectId)
41
41
assertNull(" The 'value' must be null if not provided" ,
42
- snapshot!! .first().value)
42
+ snapshot.first().value)
43
43
assertNull(" The 'extra' must be null if not provided" ,
44
- snapshot!! .first().extra)
44
+ snapshot.first().extra)
45
45
}
46
46
}
47
47
@@ -63,11 +63,11 @@ class EventsStorageEngineTest {
63
63
for (storeName in storeNames) {
64
64
val snapshot = EventsStorageEngine .getSnapshot(storeName = storeName, clearStore = false )
65
65
assertEquals(1 , snapshot!! .size)
66
- assertEquals(" telemetry" , snapshot!! .first().category)
67
- assertEquals(" test_event_with_optional" , snapshot!! .first().name)
68
- assertEquals(" test_event_object" , snapshot!! .first().objectId)
69
- assertEquals(" user_value" , snapshot!! .first().value)
70
- assertEquals(mapOf (" key1" to " value1" , " key2" to " value2" ), snapshot!! .first().extra)
66
+ assertEquals(" telemetry" , snapshot.first().category)
67
+ assertEquals(" test_event_with_optional" , snapshot.first().name)
68
+ assertEquals(" test_event_object" , snapshot.first().objectId)
69
+ assertEquals(" user_value" , snapshot.first().value)
70
+ assertEquals(mapOf (" key1" to " value1" , " key2" to " value2" ), snapshot.first().extra)
71
71
}
72
72
}
73
73
@@ -86,14 +86,14 @@ class EventsStorageEngineTest {
86
86
87
87
val snapshot = EventsStorageEngine .getSnapshot(storeName = " store1" , clearStore = false )
88
88
assertEquals(1 , snapshot!! .size)
89
- assertEquals(" telemetry" , snapshot!! .first().category)
90
- assertEquals(" test_event_time" , snapshot!! .first().name)
91
- assertEquals(" test_event_object" , snapshot!! .first().objectId)
89
+ assertEquals(" telemetry" , snapshot.first().category)
90
+ assertEquals(" test_event_time" , snapshot.first().name)
91
+ assertEquals(" test_event_object" , snapshot.first().objectId)
92
92
assertNull(" The 'value' must be null if not provided" ,
93
- snapshot!! .first().value)
93
+ snapshot.first().value)
94
94
assertNull(" The 'extra' must be null if not provided" ,
95
- snapshot!! .first().extra)
96
- assertEquals(expectedTimeSinceStart, snapshot!! .first().msSinceStart)
95
+ snapshot.first().extra)
96
+ assertEquals(expectedTimeSinceStart, snapshot.first().msSinceStart)
97
97
}
98
98
99
99
@Test
@@ -125,13 +125,13 @@ class EventsStorageEngineTest {
125
125
val snapshot2 = EventsStorageEngine .getSnapshot(storeName = " store2" , clearStore = false )
126
126
for (s in listOf (snapshot, snapshot2)) {
127
127
assertEquals(1 , s!! .size)
128
- assertEquals(" telemetry" , s!! .first().category)
129
- assertEquals(" test_event_clear" , s!! .first().name)
130
- assertEquals(" test_event_object" , s!! .first().objectId)
128
+ assertEquals(" telemetry" , s.first().category)
129
+ assertEquals(" test_event_clear" , s.first().name)
130
+ assertEquals(" test_event_object" , s.first().objectId)
131
131
assertNull(" The 'value' must be null if not provided" ,
132
- s!! .first().value)
132
+ s.first().value)
133
133
assertNull(" The 'extra' must be null if not provided" ,
134
- s!! .first().extra)
134
+ s.first().extra)
135
135
}
136
136
}
137
137
}
0 commit comments