LOGGER.debug("Calling 'beforeTest' on plugins for test {0}#{1,number,#}...", introspector.testClass().getName(), introspector.instance().hashCode());
for (PluginBinding<TestPlugin> binding : pluginManager.getResolver().getResolvedPlugins()) {
try {
binding.getPlugin().beforeTest(testExecution);
} catch (Exception e) {
throw new TestPluginException(e, "An error occured while executing 'beforeTest' on plugin '%s': %s: %s", binding.getName(), e.getClass().getSimpleName(), e.getMessage());
}
}
} finally {
Mycila.unsetCurrentExecution();
Mycila.registerCurrentExecution(testExecution.changeStep(Step.TEST));