Class AspectUtils

java.lang.Object
io.qameta.allure.util.AspectUtils

public final class AspectUtils extends Object
Utility methods used by AspectJ-based Allure integrations.

The helpers resolve step names from templates, extract method parameters, and format arguments so aspect advice can create meaningful Allure steps and parameters.

  • Method Details

    • getName

      public static String getName(String nameTemplate, org.aspectj.lang.JoinPoint joinPoint)
      Returns the name.
      Parameters:
      nameTemplate - the name template
      joinPoint - the join point
      Returns:
      the attachment or display name
    • getParametersMap

      public static Map<String,Object> getParametersMap(org.aspectj.lang.JoinPoint joinPoint)
      Returns the parameters map.
      Parameters:
      joinPoint - the join point
      Returns:
      the parameters map
    • getParameters

      public static List<io.qameta.allure.model.Parameter> getParameters(org.aspectj.lang.reflect.MethodSignature signature, Object... args)
      Returns the parameters.
      Parameters:
      signature - the signature
      args - the args
      Returns:
      the parameters