Class MethodInheritance


  • public class MethodInheritance
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void fixMethodInheritance​(ITestNGMethod[] methods, boolean before)
      Fix the methodsDependedUpon to make sure that @Configuration methods respect inheritance (before methods are invoked in the order Base first and after methods are invoked in the order Child first)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MethodInheritance

        public MethodInheritance()
    • Method Detail

      • fixMethodInheritance

        public static void fixMethodInheritance​(ITestNGMethod[] methods,
                                                boolean before)
        Fix the methodsDependedUpon to make sure that @Configuration methods respect inheritance (before methods are invoked in the order Base first and after methods are invoked in the order Child first)
        Parameters:
        methods - the list of methods
        before - true if we are handling a before method (meaning, the methods need to be sorted base class first and subclass last). false otherwise (subclass methods first, base classes last).