Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
katerina20 committed Nov 23, 2024
1 parent 6e7123e commit 97c0ce1
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/messages/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ crowdin.bundle.download.usage.description=Download bundle
crowdin.bundle.download.usage.customSynopsis=@|fg(green) crowdin bundle download <id>|@

# CROWDIN BUNDLE BROWSE COMMAND
crowdin.bundle.browse.usage.description=Browse bundle
crowdin.bundle.browse.usage.customSynopsis=@|fg(green) crowdin bundle browse <id>|@
crowdin.bundle.browse.usage.description=Open bundle in the web browser
crowdin.bundle.browse.usage.customSynopsis=@|fg(green) crowdin bundle browse|@ <id> [CONFIG OPTIONS] [OPTIONS]
crowdin.bundle.browse.id=Bundle id

# CROWDIN COMMENT COMMAND
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void testProjectAdd() {
}

@Test
void testBundleBrows() {
void testBundleBrowse() {
assertNotNull(actions.bundleBrowse(null, null));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@

import org.junit.jupiter.api.Test;

import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.verify;
public class BundleBrowseSubcommandTest extends PicocliTestUtils {

class BundleBrowseSubcommandTest extends PicocliTestUtils {
@Test
public void testProjectBrowse() {
this.execute(CommandNames.BUNDLE, CommandNames.BROWSE, "1");
verify(actionsMock).bundleBrowse(any(), any());
this.check(true);
public void testBundleBrowseInvalidOptions() {
this.executeInvalidParams(CommandNames.BUNDLE, CommandNames.BROWSE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ void mockActions() {
.thenReturn(actionMock);
when(actionsMock.bundleAdd(any(), any(), any(), any(), any(), any(), anyBoolean(), anyBoolean(), anyBoolean()))
.thenReturn(actionMock);
when(actionsMock.bundleBrowse(any(), any()))
.thenReturn(actionMock);
when(actionsMock.preTranslate(any(), any(), any(), any(), any(), any(), any(), any(), any(), any(), anyBoolean(), anyBoolean(), any(), any()))
.thenReturn(actionMock);
when(actionsMock.screenshotList(any(), anyBoolean()))
Expand Down
21 changes: 21 additions & 0 deletions website/mantemplates/crowdin-bundle-browse.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
:includedir: ../generated-picocli-docs
:command: crowdin-bundle-browse

== crowdin bundle browse

include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-description]

include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-synopsis]

include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-arguments]

include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-commands]

include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-options]

include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-footer]

=== See also

* link:https://support.crowdin.com/bundles/[Target File Bundles]
* link:/crowdin-cli/commands/crowdin-bundle[`crowdin bundle` command]

0 comments on commit 97c0ce1

Please sign in to comment.