mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
...and simplify ClientVersionUtilTest using parameterized tests. GitOrigin-RevId: da96ef4a92674cde5bd3c840a6b406a078c69584
21 lines
757 B
Kotlin
21 lines
757 B
Kotlin
package com.intellij.remoteDev.util
|
|
|
|
import com.intellij.remoteDev.util.ClientVersionUtil.isJBCSeparateConfigSupported
|
|
import org.junit.jupiter.api.Assertions.assertFalse
|
|
import org.junit.jupiter.api.Assertions.assertTrue
|
|
import org.junit.jupiter.params.ParameterizedTest
|
|
import org.junit.jupiter.params.provider.ValueSource
|
|
|
|
class ClientVersionUtilTest {
|
|
@ValueSource(strings = ["233.173", "233.SNAPSHOT", "241.1", "241.SNAPSHOT"])
|
|
@ParameterizedTest
|
|
fun `supported version`(version: String) {
|
|
assertTrue(isJBCSeparateConfigSupported(version))
|
|
}
|
|
|
|
@ValueSource(strings = ["233.172", "232.SNAPSHOT", "232.9999"])
|
|
@ParameterizedTest
|
|
fun `not supported versions`(version: String) {
|
|
assertFalse(isJBCSeparateConfigSupported(version))
|
|
}
|
|
} |