Class StepModelPatchAspect
- java.lang.Object
-
- dev.aherscu.qa.jgiven.commons.utils.StepModelPatchAspect
-
public class StepModelPatchAspect extends Object
PatchesStepModel
in order to allow correct reporting of step execution duration.https://github.com/TNG/JGiven/issues/755
IMPORTANT: requires having
com.tngtech.jgiven:jgiven-core
as a weave dependency.
-
-
Constructor Summary
Constructors Constructor Description StepModelPatchAspect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aroundSetDurationInNanos(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint, com.tngtech.jgiven.report.model.StepModel stepModel)
Monitors attempts to set step method's duration.void
setDurationInNanos(com.tngtech.jgiven.report.model.StepModel stepModel)
Matches the execution ofStepModel.setDurationInNanos(long)
-
-
-
Method Detail
-
aroundSetDurationInNanos
public void aroundSetDurationInNanos(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint, com.tngtech.jgiven.report.model.StepModel stepModel) throws Throwable
Monitors attempts to set step method's duration. If the duration is already set, then overrides to do nothing.- Parameters:
thisJoinPoint
- this join-pointstepModel
- instance ofStepModel
- Throws:
Throwable
- any...- See Also:
setDurationInNanos(StepModel)
-
setDurationInNanos
public void setDurationInNanos(com.tngtech.jgiven.report.model.StepModel stepModel)
Matches the execution ofStepModel.setDurationInNanos(long)
- Parameters:
stepModel
- instance ofStepModel
-
-