justinmclean commented on code in PR #6163:
URL: https://github.com/apache/gravitino/pull/6163#discussion_r1911946511
##########
clients/cli/src/test/java/org/apache/gravitino/cli/TestCatalogCommands.java:
##########
@@ -513,24 +513,13 @@ void testDisableCatalogCommand() {
@SuppressWarnings("DefaultCharset")
void testCatalogWithDisableAndEnableOptions() {
Main.useExit = false;
-
when(mockCommandLine.hasOption(GravitinoOptions.METALAKE)).thenReturn(true);
-
when(mockCommandLine.getOptionValue(GravitinoOptions.METALAKE)).thenReturn("metalake_demo");
- when(mockCommandLine.hasOption(GravitinoOptions.NAME)).thenReturn(true);
-
when(mockCommandLine.getOptionValue(GravitinoOptions.NAME)).thenReturn("catalog");
- when(mockCommandLine.hasOption(GravitinoOptions.DISABLE)).thenReturn(true);
- when(mockCommandLine.hasOption(GravitinoOptions.ENABLE)).thenReturn(true);
-
- GravitinoCommandLine commandLine =
+ CatalogEnable mockCatalogEnable =
spy(
- new GravitinoCommandLine(
- mockCommandLine, mockOptions, CommandEntities.CATALOG,
CommandActions.UPDATE));
+ new CatalogEnable(
Review Comment:
This should be GravitinoCommandLine not CatalogEnable
--
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]