From b42ee6560b18dd82cc84328763faa8b1ed88ead7 Mon Sep 17 00:00:00 2001 From: Jan Zickermann <jan.zickermann@dataport.de> Date: Thu, 26 Sep 2024 16:23:42 +0200 Subject: [PATCH] OZG-6754 KOP-2703 Cleanup XdomeaXtaMessageCreatorTest --- .../xta/client/xdomea/XdomeaXtaMessageCreatorTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 969bbd6..0155421 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); } -- GitLab