Skip to content

Commit 1d07ce8

Browse files
committed
addressed feedback
1 parent 0669073 commit 1d07ce8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/telemetry/OpenedFileTypeMetricsTest.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
package software.aws.toolkits.jetbrains.services.telemetry
55

6+
import org.assertj.core.api.Assertions.assertThat
67
import org.junit.After
78
import org.junit.Before
89
import org.junit.Test
9-
import org.mockito.kotlin.times
10+
import org.junit.jupiter.api.Assertions.assertEquals
11+
import org.junit.jupiter.api.Assertions.assertTrue
1012

1113
class OpenedFileTypeMetricsTest {
1214

@@ -25,12 +27,12 @@ class OpenedFileTypeMetricsTest {
2527
@Test
2628
fun `test addToExistingTelemetryBatch with allowed extension`() {
2729
service.addToExistingTelemetryBatch("kt")
28-
assert(service.getOpenedFileTypes().contains(".kt"))
30+
assertTrue(service.getOpenedFileTypes().contains(".kt") )
2931
}
3032

3133
@Test
3234
fun `test addToExistingTelemetryBatch with disallowed extension`() {
3335
service.addToExistingTelemetryBatch("txt")
34-
assert(service.getOpenedFileTypes().isEmpty())
36+
assertEquals(service.getOpenedFileTypes(), emptySet<String>())
3537
}
3638
}

0 commit comments

Comments
 (0)