VT
if (!rules.isEmpty()) {
return joinPoint.proceed();
} else {
final String uuid = UUID.randomUUID().toString();
try {
StepResult stepResult = new StepResult();
getLifecycle().startStep(uuid, stepResult);
throw new RuntimeException(stepsToString(steps));
} catch (Throwable e) {
getLifecycle().updateStep(uuid, s -> s
.withStatus(Status.SKIPPED).withName("The rule is not fulfilled for: \n").withSteps(steps));
throw e;
} finally {
getLifecycle().stopStep(uuid);
final Optional<String> testCaseUuid = getLifecycle().getCurrentTestCase();
testCaseUuid.ifPresent(Rule::stopAndWriteCurrentTestCaseAsSkipped);
}