Skip to content

Commit

Permalink
Fix display name language
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-yevsyukov committed Nov 6, 2024
1 parent b872ae2 commit c2d29c3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,30 +45,30 @@ internal class RequiredFieldITest {

@Test
@Disabled("https://github.com/SpineEventEngine/validation/issues/148")
fun `not set fields produce a violation`() {
fun `unset fields produce a violation`() {
val invalidMessage = Due.newBuilder()
assertInvalidWithParam(invalidMessage, "date | never")
}

@Test
@Disabled("https://github.com/SpineEventEngine/validation/issues/148")
fun `a complete group of fields must be set`() {
fun `incomplete group causes a violation`() {
val invalidMessage = Combination.newBuilder()
.setA1("a1")
.setB2(ByteString.copyFrom("b2", Charsets.UTF_16))
assertInvalidWithParam(invalidMessage, "a1 & a2 | b1 & b2")
}

@Test
fun `if at least one alternative is set, no violation`() {
fun `at least one alternative satisfies the constraint`() {
val message = Combination.newBuilder()
.setA1("a1")
.addA2("a2")
assertValid(message)
}

@Test
fun `if all the alternatives are set, no violation`() {
fun `if all the alternatives set the constraint is satisfied`() {
val message = Combination.newBuilder()
.setA1("a1")
.addA2("a2")
Expand Down

0 comments on commit c2d29c3

Please sign in to comment.