Minor: fix typo
authorVitaliy.Bibaev <vitaliy.bibaev@jetbrains.com>
Thu, 25 Jan 2018 16:39:51 +0000 (19:39 +0300)
committerVitaliy.Bibaev <vitaliy.bibaev@jetbrains.com>
Thu, 25 Jan 2018 16:39:51 +0000 (19:39 +0300)
plugins/stats-collector/log-events/src/test/kotlin/com/intellij/stats/completion/ValidatorTest.kt

index 285185ad52b4284f5e76e81d2d2b0b91f228cb0f..ceac03e5a13cdd5f0245c56ca4c0461269138ec9 100644 (file)
@@ -26,7 +26,7 @@ import java.io.File
 
 class ValidatorTest {
 
-    lateinit var separator: InputSessionValidator
+    lateinit var validator: InputSessionValidator
     val sessionStatuses = hashMapOf<String, Boolean>()
 
     @Before
@@ -43,7 +43,7 @@ class ValidatorTest {
                 sessionStatuses[sessionUid] = true
             }
         }
-        separator = InputSessionValidator(result)
+        validator = InputSessionValidator(result)
     }
 
     private fun file(path: String): File {
@@ -53,35 +53,35 @@ class ValidatorTest {
     @Test
     fun testValidData() {
         val file = file("data/valid_data.txt")
-        separator.validate(file.readLines())
+        validator.validate(file.readLines())
         assertThat(sessionStatuses["30fa222f0419"]).isTrue()
     }
 
     @Test
     fun testDataWithAbsentFieldInvalid() {
         val file = file("data/absent_field.txt")
-        separator.validate(file.readLines())
+        validator.validate(file.readLines())
         assertThat(sessionStatuses["30fa222f0419"]).isFalse()
     }
 
     @Test
     fun testInvalidWithoutBacket() {
         val file = file("data/no_bucket.txt")
-        separator.validate(file.readLines())
+        validator.validate(file.readLines())
         assertThat(sessionStatuses["30fa222f0419"]).isNull()
     }
 
     @Test
     fun testInvalidWithoutVersion() {
         val file = file("data/no_version.txt")
-        separator.validate(file.readLines())
+        validator.validate(file.readLines())
         assertThat(sessionStatuses["30fa222f0419"]).isNull()
     }
 
     @Test
     fun testDataWithExtraFieldInvalid() {
         val file = file("data/extra_field.txt")
-        separator.validate(file.readLines())
+        validator.validate(file.readLines())
         assertThat(sessionStatuses["30fa222f0419"]).isFalse()
     }