emptyMap = Collections.<String, String> emptyMap();
}
@Test(groups = { "fast-unit" })
public void _givenCsvBucket_callsSplunkImportToolWithCsvFile() {
LocalBucket csvBucket = TUtilsBucket.createRealCsvBucket();
List<String> importTooExecutable = asList("path/to/importtool");
when(splunkImportTool.getExecutableCommand()).thenReturn(
importTooExecutable);
when(splunkImportTool.getEnvironment()).thenReturn(emptyMap);
File csvFile = UtilsBucket.getCsvFile(csvBucket);
String[] arguments = new String[] {
csvBucket.getDirectory().getAbsolutePath(), // <-- should move
// this logic
// somewhere.
csvFile.getAbsolutePath() };
List<String> command = UtilsList.join(importTooExecutable,
asList(arguments));