Skip to content

Commit

Permalink
Address Detekt warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yevhenii-nadtochii committed Dec 5, 2024
1 parent c04d6c7 commit f8fcef6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8fcef6

Please sign in to comment.