Class LoopIncludeTagAspect


  • public class LoopIncludeTagAspect
    extends Object
    Aspect for managing the @include, @background and @loop tags. This particulars tags must be handled right after the feature file is read
    Author:
    José Fernández
    • Constructor Detail

      • LoopIncludeTagAspect

        public LoopIncludeTagAspect()
    • Method Detail

      • featureBuilderRead

        protected void featureBuilderRead​(cucumber.runtime.io.Resource resource)
      • aroundAddLoopTagPointcutScenario

        public String aroundAddLoopTagPointcutScenario​(org.aspectj.lang.ProceedingJoinPoint pjp,
                                                       cucumber.runtime.io.Resource resource)
                                                throws Throwable
        Around add loop tag pointcut scenario string.
        Parameters:
        pjp - the pjp
        resource - resource containing feature
        Returns:
        String parsed feature after aspect applied
        Throws:
        Throwable - exception
      • getFeatureName

        public String getFeatureName​(String s)
        Parameters:
        s - A string with the tag line that will be filtered and trimmed to get exactly the name of the feature
        Returns:
        String Feature name
      • checkParams

        public boolean checkParams​(String sCurrentLine,
                                   String[] params)