Skip to content

Commit 369d4ab

Browse files
committed
Apply feedback
1 parent 444c969 commit 369d4ab

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

data-loader/cli/src/test/java/com/scalar/db/dataloader/cli/command/dataimport/ImportCommandTest.java

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -158,20 +158,7 @@ void call_withBothLogSuccessAndEnableLogSuccess_shouldThrowException() throws Ex
158158
Files.createFile(importFile);
159159

160160
// Simulate command line parsing with both deprecated and new options
161-
String[] args = {
162-
"--config",
163-
configFile.toString(),
164-
"--file",
165-
importFile.toString(),
166-
"--namespace",
167-
"sample",
168-
"--table",
169-
"table",
170-
"--log-success",
171-
"--enable-log-success",
172-
"--max-threads",
173-
"16"
174-
};
161+
String[] args = {"--file", importFile.toString(), "--log-success", "--enable-log-success"};
175162
ImportCommand command = new ImportCommand();
176163
CommandLine cmd = new CommandLine(command);
177164
// Parse args - this will trigger our validation
@@ -198,19 +185,7 @@ void call_withOnlyDeprecatedLogSuccess_shouldApplyValue() throws Exception {
198185
Files.createFile(importFile);
199186

200187
// Simulate command line parsing with only deprecated option
201-
String[] args = {
202-
"--config",
203-
configFile.toString(),
204-
"--file",
205-
importFile.toString(),
206-
"--namespace",
207-
"sample",
208-
"--table",
209-
"table",
210-
"--max-threads",
211-
"12",
212-
"--log-success"
213-
};
188+
String[] args = {"--file", importFile.toString(), "--log-success"};
214189
ImportCommand command = new ImportCommand();
215190
CommandLine cmd = new CommandLine(command);
216191
cmd.parseArgs(args);

0 commit comments

Comments
 (0)