test: made MessageValidation Test work on German computers
This commit is contained in:
parent
df8acbeefa
commit
57d384e98c
@ -120,15 +120,27 @@ class MessageValidationUtilityTest {
|
||||
var characterConfig = new CharacterConfig();
|
||||
|
||||
assertThat(ValidationUtility.validate(characterConfig).get())
|
||||
.isEqualTo("characters must not be empty");
|
||||
.isIn("characters mus not be empty", "characters darf nicht leer sein");
|
||||
// .isEqualTo("characters must not be empty");
|
||||
|
||||
characterConfig.characters = new CharacterProperties[] {racoon, quicksilver, hulk, loki, silversurfer};
|
||||
|
||||
assertThat(ValidationUtility.validate(characterConfig).get())
|
||||
.contains("characters has less than 24 characters",
|
||||
"characters[4].rangedDamage must be greater than 0",
|
||||
"characters[4].name must not be empty",
|
||||
"characters[4].meleeDamage must be greater than 0");
|
||||
var results = ValidationUtility.validate(characterConfig).get();
|
||||
assertThat(results.contains("characters has less than 24 characters") ||
|
||||
results.contains("characters hat weniger als 24 characters"))
|
||||
.isTrue();
|
||||
|
||||
assertThat(results.contains("characters[4].rangedDamage must be greater than 0") ||
|
||||
results.contains("characters[4].rangedDamage muss größer als 0 sein"))
|
||||
.isTrue();
|
||||
|
||||
assertThat(results.contains("characters[4].name must not be empty") ||
|
||||
results.contains("characters[4].name darf nicht leer sein"))
|
||||
.isTrue();
|
||||
|
||||
assertThat(results.contains("characters[4].meleeDamage must be greater than 0") ||
|
||||
results.contains("characters[4].meleeDamage muss größer als 0 sein"))
|
||||
.isTrue();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user