in module/geb-junit4/src/main/groovy/geb/junit4/GebTestManagerRule.groovy [31:52]
Statement apply(Statement base, Description description) {
{ ->
def testManager = getTestManager(description.testClass)
testManager.beforeTest(description.testClass, description.methodName)
try {
base.evaluate()
} catch (AssumptionViolatedException e) {
throw e
} catch (Throwable e) {
try {
if (testManager.reportingEnabled) {
testManager.reportFailure()
}
} catch (Throwable ignored) {
}
throw e
} finally {
testManager.afterTest()
}
} as Statement
}