Skip to content

Commit

Permalink
fix: messages filename (#887)
Browse files Browse the repository at this point in the history
* fix: messages filename

* fix: unit test
  • Loading branch information
yevheniyJ authored Jan 15, 2025
1 parent 139bc9b commit 5331d62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@
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 {

@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);
}

Expand Down

0 comments on commit 5331d62

Please sign in to comment.