Skip to content

Commit

Permalink
Relax assertions
Browse files Browse the repository at this point in the history
Default actions applied to `UuidValue` types do not depend on the order. Therefore, even if actions are applied in order, the tests should not demand the order of actions in the default settings.
  • Loading branch information
alexander-yevsyukov committed Jul 27, 2024
1 parent 8e5ef36 commit 5df4b8c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

package io.spine.tools.mc.java.gradle.settings

import io.kotest.matchers.collections.shouldContainInOrder
import io.kotest.matchers.collections.shouldContainExactlyInAnyOrder
import io.spine.tools.kotlin.reference
import io.spine.tools.mc.java.uuid.AddFactoryMethods
import io.spine.tools.mc.java.uuid.ImplementUuidValue
Expand All @@ -51,11 +51,11 @@ internal class UuidSettingsSpec {
val settings = UuidSettings(project)

val expected = listOf(
ImplementUuidValue::class.reference,
AddFactoryMethods::class.reference,
ImplementUuidValue::class.reference,
)

settings.actions() shouldContainInOrder expected
settings.toProto().actionList shouldContainInOrder expected
settings.actions().toList() shouldContainExactlyInAnyOrder expected
settings.toProto().actionList shouldContainExactlyInAnyOrder expected
}
}

0 comments on commit 5df4b8c

Please sign in to comment.