From aca4ab641e41cf76b454a9c97c3e40d40b33c227 Mon Sep 17 00:00:00 2001 From: Yevheniy Oliynyk Date: Wed, 15 Jan 2025 14:36:18 +0100 Subject: [PATCH] fix: unit test --- .../cli/commands/picocli/FileDownloadSubcommandTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }