Class StackUtils

java.lang.Object
com.epam.healenium.utils.StackUtils

public class StackUtils extends Object
  • Field Details

  • Constructor Details

    • StackUtils

      public StackUtils()
  • Method Details

    • isAnnotationPresent

      public boolean isAnnotationPresent(Class<? extends Annotation> aClass)
      Parameters:
      aClass - annotation class
      Returns:
      true of false
    • getElementByClass

      public Optional<StackTraceElement> getElementByClass(StackTraceElement[] elements, String targetClass)
      Parameters:
      elements - list of StackTraceElements
      targetClass - targetClass
      Returns:
      StackTraceElement
    • redundantPackages

      public Predicate<StackTraceElement> redundantPackages()