- fixture.addInput(new StreamInput(new Stream(testTrace.getTrace()),
- (FileChannel) null, new File("")));
+ fixture.addInput(new StreamInput(new Stream(testTrace.getTrace()), createFile()));
+ }
+
+ private static File createFile() {
+ File path = new File(testTrace.getPath());
+ return path.listFiles(new FilenameFilter() {
+ @Override
+ public boolean accept(File dir, String name) {
+ if (name.contains("hann")) {
+ return true;
+ }
+ return false;
+ }
+ })[0];