File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/kotlin/implicit/validation/validator Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ class CombinedLimitsValidatorTest {
3838 Assertions .fail<String >(" Validation must fail because values do not respect the limits" )
3939 } catch (ex: ImplicitViolations ) {
4040 assertThat(ex.violations).hasSize(2 )
41- assertThat(ex.violations.get( 0 )).extracting{ it.message}.isEqualTo( " value of field 'setFloatValue' is > 3.5" )
42- assertThat(ex.violations.get( 1 )).extracting{ it.message}.isEqualTo( " value of field 'setIntegerValue' is < 1.0" )
41+ assertThat(" value of field 'setFloatValue' is > 3.5" ).isIn(ex.violations.get( 0 ).message,ex.violations.get( 1 ).message )
42+ assertThat(" value of field 'setIntegerValue' is < 1.0" ).isIn(ex.violations.get( 0 ).message,ex.violations.get( 1 ).message )
4343 }
4444 }
4545
You can’t perform that action at this time.
0 commit comments