diff --git a/src/test/java/de/ozgcloud/xta/client/xdomea/XdomeaXtaMessageCreatorTest.java b/src/test/java/de/ozgcloud/xta/client/xdomea/XdomeaXtaMessageCreatorTest.java index 969bbd6769b013ed37973ab9d52b2e322c6bce1b..0155421cdcf5b27527a87d57eb41777646035790 100644 --- a/src/test/java/de/ozgcloud/xta/client/xdomea/XdomeaXtaMessageCreatorTest.java +++ b/src/test/java/de/ozgcloud/xta/client/xdomea/XdomeaXtaMessageCreatorTest.java @@ -260,22 +260,22 @@ class XdomeaXtaMessageCreatorTest { private static final String MESSAGE_TYPE_CODE = "messageTypeCode"; private static final String VALID_ZIP_FILE_NAME = "processId_messageTypeCode.zip"; - @DisplayName("should not throw exception") + @DisplayName("should not throw exception for valid zip file name") @Test - void shouldNotThrowException() { + void shouldNotThrowExceptionForValidZipFileName() { assertThatCode(() -> creator.validateZipFileName(VALID_ZIP_FILE_NAME, PROCESS_ID, MESSAGE_TYPE_CODE)) .doesNotThrowAnyException(); } - @DisplayName("should throw client exception") + @DisplayName("should throw client exception for wrong zip file name") @ParameterizedTest @ValueSource(strings = { "$processId_messageTypeCode.zip", "processId_me$ssageTypeCode.zip", "processId_messageTypeCode.zip$", }) - void shouldThrowClientException() { - assertThatThrownBy(() -> creator.validateZipFileName("processId_messageTypeCode.zip", PROCESS_ID, "wrongMessageTypeCode")) + void shouldThrowClientExceptionForWrongZipFileName(String wrongZipFileName) { + assertThatThrownBy(() -> creator.validateZipFileName(wrongZipFileName, PROCESS_ID, MESSAGE_TYPE_CODE)) .isInstanceOf(ClientException.class); }