File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
data-loader/cli/src/test/java/com/scalar/db/dataloader/cli/command/dataexport Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 66import com .scalar .db .dataloader .core .FileFormat ;
77import java .io .File ;
88import java .nio .file .Paths ;
9+ import com .scalar .db .dataloader .core .ScalarDbMode ;
910import org .junit .jupiter .api .AfterEach ;
1011import org .junit .jupiter .api .Assertions ;
1112import 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}
You can’t perform that action at this time.
0 commit comments