Class BaseSpecRunner

  • Direct Known Subclasses:
    ParameterizedSpecRunner

    public class BaseSpecRunner
    extends java.lang.Object
    Executes a single Spec. Notifies its supervisor about overall execution progress and every invocation of Spec code. Supervisor also determines the error strategy.
    Author:
    Peter Niederwieser
    • Field Detail

      • EMPTY_ARGS

        protected static final java.lang.Object[] EMPTY_ARGS
      • runStatus

        protected int runStatus
    • Method Detail

      • run

        public int run()
      • doRunSpec

        public void doRunSpec()
        Only called via reflection.
      • doRunFeature

        public void doRunFeature()
        Only called via reflection.
      • initializeAndRunIteration

        protected void initializeAndRunIteration​(java.lang.Object[] dataValues,
                                                 int estimatedNumIterations)
      • doRunIteration

        public void doRunIteration()
        Only called via reflection.
      • resetStatus

        protected int resetStatus​(int scope)
      • runParameterizedFeature

        protected void runParameterizedFeature()
      • invokeRaw

        protected java.lang.Object invokeRaw​(java.lang.Object target,
                                             MethodInfo method,
                                             java.lang.Object... arguments)