WroTestUtils.forEachFileInFolder(testFolder, new Function<File, Void>() {
@Override
public Void apply(final File input)
throws Exception {
try {
decorated.process(Resource.create(input.getPath(), ResourceType.JS), new FileReader(input),
new StringWriter());
Assert.fail("Expected to fail, but didn't");
} catch (final WroRuntimeException e) {
// expected to throw exception, continue
}