Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniyJ committed Jan 15, 2025
1 parent 8bb9f3d commit aca4ab6
Showing 1 changed file with 3 additions and 2 deletions.
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 aca4ab6

Please sign in to comment.