From f8fcef6bf2134a6480508ca50e6311742bb6d1f2 Mon Sep 17 00:00:00 2001 From: yevhenii-nadtochii Date: Thu, 5 Dec 2024 18:00:32 +0100 Subject: [PATCH] Address Detekt warnings --- .../src/test/kotlin/io/spine/test/options/goes/GoesITest.kt | 1 + .../kotlin/io/spine/test/options/goes/GoesMutualITest.kt | 5 +---- .../src/test/kotlin/io/spine/test/options/goes/TestData.kt | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/GoesITest.kt b/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/GoesITest.kt index 5c83b394..3a974e8a 100644 --- a/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/GoesITest.kt +++ b/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/GoesITest.kt @@ -67,6 +67,7 @@ internal class GoesITest { } } + @Suppress("MaxLineLength") // So, not to wrap the test name. @MethodSource("io.spine.test.options.goes.TestData#bothTargetAndCompanionFields") @ParameterizedTest(name = "not throw if both the target `{1}` and its companion `{3}` fields are set") fun notThrowIfBothTargetAndCompanionFieldsSet( diff --git a/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/GoesMutualITest.kt b/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/GoesMutualITest.kt index 256f10ff..17c2356b 100644 --- a/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/GoesMutualITest.kt +++ b/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/GoesMutualITest.kt @@ -27,12 +27,8 @@ package io.spine.test.options.goes import com.google.protobuf.Message -import com.google.protobuf.util.Timestamps -import io.spine.test.tools.validate.EnumForGoes -import io.spine.test.tools.validate.MutualMessageCompanion import io.spine.validate.ValidationException import org.junit.jupiter.api.DisplayName -import org.junit.jupiter.api.Test import org.junit.jupiter.api.assertDoesNotThrow import org.junit.jupiter.api.assertThrows import org.junit.jupiter.params.ParameterizedTest @@ -41,6 +37,7 @@ import org.junit.jupiter.params.provider.MethodSource @DisplayName("`(goes)` constraint should") internal class GoesMutualITest { + @Suppress("MaxLineLength") // So, not to wrap the test name. @MethodSource("io.spine.test.options.goes.TestDataMutual#interdependentFields") @ParameterizedTest(name = "throw if one of mutually dependent `{1}` and `{3}` fields is not set") fun throwIfOneOfMutuallyDependentFieldsNotSet( diff --git a/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/TestData.kt b/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/TestData.kt index 91e1af41..06ac58df 100644 --- a/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/TestData.kt +++ b/java-tests/validating/src/test/kotlin/io/spine/test/options/goes/TestData.kt @@ -31,7 +31,7 @@ import com.google.protobuf.Message import com.google.protobuf.util.Timestamps import io.spine.test.tools.validate.BytesCompanion import io.spine.test.tools.validate.EnumCompanion -import io.spine.test.tools.validate.EnumForGoes.* +import io.spine.test.tools.validate.EnumForGoes.EFG_ITEM1 import io.spine.test.tools.validate.MapCompanion import io.spine.test.tools.validate.MessageCompanion import io.spine.test.tools.validate.RepeatedCompanion