Skip to content
Snippets Groups Projects
Commit 3e412278 authored by Colin DAMON's avatar Colin DAMON
Browse files

Merge branch '5-tet-method-typo' into 'master'

Resolve "test method typo"

Closes #5

See merge request !5
parents eb1815eb 05881cae
No related branches found
No related tags found
1 merge request!5Resolve "test method typo"
Pipeline #30369 passed
......@@ -49,7 +49,7 @@ public class ErrorMessagesUnitTest {
errors
.stream()
.filter(error -> error.isEnum())
.forEach(error -> Arrays.stream(error.getEnumConstants()).forEach(value -> messages.forEach(assertMessageExist(value))));
.forEach(error -> Arrays.stream(error.getEnumConstants()).forEach(value -> messages.forEach(assertMessageExists(value))));
}
private List<Properties> loadMessages() {
......@@ -73,7 +73,7 @@ public class ErrorMessagesUnitTest {
};
}
private Consumer<Properties> assertMessageExist(PouetMessage value) {
private Consumer<Properties> assertMessageExists(PouetMessage value) {
return currentMessages -> {
assertThat(currentMessages.getProperty("pouet.error." + value.getMessageKey()))
.as("Can't find message for " + value.getMessageKey() + " in all files, check your configuration")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment