From 5331d62c6f628799eef03f4fdd5465a031907d1b Mon Sep 17 00:00:00 2001 From: Yevheniy Oliynyk Date: Wed, 15 Jan 2025 14:42:19 +0100 Subject: [PATCH] fix: messages filename (#887) * fix: messages filename * fix: unit test --- src/main/resources/messages/{skip => messages.properties} | 0 .../cli/commands/picocli/FileDownloadSubcommandTest.java | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) rename src/main/resources/messages/{skip => messages.properties} (100%) diff --git a/src/main/resources/messages/skip b/src/main/resources/messages/messages.properties similarity index 100% rename from src/main/resources/messages/skip rename to src/main/resources/messages/messages.properties diff --git a/src/test/java/com/crowdin/cli/commands/picocli/FileDownloadSubcommandTest.java b/src/test/java/com/crowdin/cli/commands/picocli/FileDownloadSubcommandTest.java index f058fd9a..d9bc0f81 100644 --- a/src/test/java/com/crowdin/cli/commands/picocli/FileDownloadSubcommandTest.java +++ b/src/test/java/com/crowdin/cli/commands/picocli/FileDownloadSubcommandTest.java @@ -3,6 +3,7 @@ import org.junit.jupiter.api.Test; import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.verify; class FileDownloadSubcommandTest extends PicocliTestUtils { @@ -10,14 +11,14 @@ class FileDownloadSubcommandTest extends PicocliTestUtils { @Test public void testFileDownload() { this.execute(CommandNames.FILE, CommandNames.FILE_DOWNLOAD, "file.txt"); - verify(actionsMock).fileDownload(any(), any(), false, any()); + verify(actionsMock).fileDownload(any(), any(), eq(false), any()); this.check(true); } @Test public void testFileDownloadTranslations() { this.execute(CommandNames.FILE, CommandNames.FILE_DOWNLOAD, "file.txt", "--language", "uk"); - verify(actionsMock).fileDownloadTranslation(any(), any(), any(), false, any()); + verify(actionsMock).fileDownloadTranslation(any(), any(), any(), eq(false), any()); this.check(true); }