justinmclean commented on code in PR #6163:
URL: https://github.com/apache/gravitino/pull/6163#discussion_r1911946571
##########
clients/cli/src/test/java/org/apache/gravitino/cli/TestMetalakeCommands.java:
##########
@@ -434,21 +432,13 @@ void testDisableMetalakeCommand() {
@SuppressWarnings("DefaultCharset")
void testMetalakeWithDisableAndEnableOptions() {
Main.useExit = false;
-
when(mockCommandLine.hasOption(GravitinoOptions.METALAKE)).thenReturn(true);
-
when(mockCommandLine.getOptionValue(CommandEntities.METALAKE)).thenReturn("metalake_demo");
- when(mockCommandLine.hasOption(GravitinoOptions.ENABLE)).thenReturn(true);
- when(mockCommandLine.hasOption(GravitinoOptions.DISABLE)).thenReturn(true);
-
- GravitinoCommandLine commandLine =
+ MetalakeEnable mockMetalakeEnable =
spy(
- new GravitinoCommandLine(
- mockCommandLine, mockOptions, CommandEntities.METALAKE,
CommandActions.UPDATE));
+ new MetalakeEnable(
Review Comment:
This needs to be GravitinoCommandLine not MetalakeEnable
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]