mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
TestAllFiles: Add output if a file cannot be matched to a handler
This commit is contained in:
parent
dc2cfe0bfc
commit
7003357b79
@ -172,6 +172,7 @@ public class TestAllFiles {
|
||||
continue;
|
||||
}
|
||||
|
||||
boolean found = false;
|
||||
for (FileHandlerKnown handler : sm.getHandler(file)) {
|
||||
ExcInfo info1 = sm.getExcInfo(file, testName, handler);
|
||||
if (info1 == null || info1.isValid(testName, handler.name())) {
|
||||
@ -182,8 +183,13 @@ public class TestAllFiles {
|
||||
(info1 != null) ? info1.getExClazz() : null,
|
||||
(info1 != null) ? info1.getExMessage() : null
|
||||
));
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
System.out.println("Could not find a handler for " + file);
|
||||
}
|
||||
}
|
||||
|
||||
return result.stream();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user