Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
katerina20 committed Nov 7, 2024
1 parent 09ea61d commit 802ab01
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
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 @@ -3,13 +3,20 @@
import org.junit.jupiter.api.Test;

import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.Mockito.verify;

class BundleBrowseSubcommandTest extends PicocliTestUtils {
public class BundleBrowseSubcommandTest extends PicocliTestUtils {

@Test
public void testProjectBrowse() {
public void testBundleBrowse() {
this.execute(CommandNames.BUNDLE, CommandNames.BROWSE, "1");
verify(actionsMock).bundleBrowse(any(), any());
verify(actionsMock).bundleBrowse(anyLong(), any());
this.check(true);
}

@Test
public void testBundleBrowseInvalidOptions() {
this.executeInvalidParams(CommandNames.BUNDLE, CommandNames.BROWSE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void mockActions() {
.thenReturn(actionMock);
when(actionsMock.bundleAdd(any(), any(), any(), any(), any(), any(), anyBoolean(), anyBoolean(), anyBoolean()))
.thenReturn(actionMock);
when(actionsMock.bundleBrowse(any(), any()))
when(actionsMock.bundleBrowse(anyLong(), any()))
.thenReturn(actionMock);
when(actionsMock.preTranslate(any(), any(), any(), any(), any(), any(), any(), any(), any(), any(), anyBoolean(), anyBoolean(), any(), any()))
.thenReturn(actionMock);
Expand Down

0 comments on commit 802ab01

Please sign in to comment.