diff --git a/src/test/java/com/ippon/pouet/common/domain/error/ErrorMessagesUnitTest.java b/src/test/java/com/ippon/pouet/common/domain/error/ErrorMessagesUnitTest.java index db7c84eb0b032c3022dea0c9059d89d23e0fb413..c606857b65b282bfe4813a1b5da12230d13a4b16 100644 --- a/src/test/java/com/ippon/pouet/common/domain/error/ErrorMessagesUnitTest.java +++ b/src/test/java/com/ippon/pouet/common/domain/error/ErrorMessagesUnitTest.java @@ -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")