Files
openide/platform/remoteDev-util/testSrc/com/intellij/remoteDev/util/ClientVersionUtilTest.kt
Nikolay Chashnikov aa3ebab95b [rdct tests] refactoring: convert tests in intellij.remoteDev.util module to JUnit5
...and simplify ClientVersionUtilTest using parameterized tests.

GitOrigin-RevId: da96ef4a92674cde5bd3c840a6b406a078c69584
2023-07-19 16:40:55 +00:00

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))
}
}