Skip to content

Commit 24ce20c

Browse files
committed
minor test change
1 parent e32fd44 commit 24ce20c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

data-loader/cli/src/test/java/com/scalar/db/dataloader/cli/command/dataexport/ExportCommandTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import com.scalar.db.dataloader.core.FileFormat;
77
import java.io.File;
88
import java.nio.file.Paths;
9+
import com.scalar.db.dataloader.core.ScalarDbMode;
910
import org.junit.jupiter.api.AfterEach;
1011
import org.junit.jupiter.api.Assertions;
1112
import org.junit.jupiter.api.Test;
@@ -53,4 +54,18 @@ void call_withInvalidScalarDBConfigurationFile_shouldReturnOne() throws Exceptio
5354
exportCommand.outputFormat = FileFormat.JSON;
5455
Assertions.assertEquals(1, exportCommand.call());
5556
}
57+
58+
@Test
59+
void call_withScalarDBModeTransaction_WithInvalidConfigurationFile_shouldReturnOne() throws Exception {
60+
ExportCommand exportCommand = new ExportCommand();
61+
exportCommand.configFilePath = "scalardb.properties";
62+
exportCommand.dataChunkSize = 100;
63+
exportCommand.namespace = "scalar";
64+
exportCommand.table = "asset";
65+
exportCommand.outputDirectory = "";
66+
exportCommand.outputFileName = "sample.json";
67+
exportCommand.outputFormat = FileFormat.JSON;
68+
exportCommand.scalarDbMode = ScalarDbMode.TRANSACTION;
69+
Assertions.assertEquals(1, exportCommand.call());
70+
}
5671
}

0 commit comments

Comments
 (0)