Class CustomSpockRunner

  • All Implemented Interfaces:
    UnifiedHybrisTestRunner, org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

    public class CustomSpockRunner
    extends org.spockframework.runtime.Sputnik
    implements UnifiedHybrisTestRunner
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomSpockRunner​(java.lang.Class<?> clazz)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void filter​(org.junit.runner.manipulation.Filter filter)  
      java.lang.Class getCurrentTestClass()  
      void run​(org.junit.runner.notification.RunNotifier notifier)  
      void superFilter​(org.junit.runner.manipulation.Filter filter)
      Calls super#filter(org.junit.runner.manipulation.Filter)
      void superRun​(org.junit.runner.notification.RunNotifier notifier)
      Calls super#run(org.junit.runner.notification.RunNotifier)
      • Methods inherited from class org.spockframework.runtime.Sputnik

        getDescription, sort
      • Methods inherited from class org.junit.runner.Runner

        testCount
      • Methods inherited from class java.lang.Object

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

      • CustomSpockRunner

        public CustomSpockRunner​(java.lang.Class<?> clazz)
                          throws org.junit.runners.model.InitializationError
        Throws:
        org.junit.runners.model.InitializationError
    • Method Detail

      • filter

        public void filter​(org.junit.runner.manipulation.Filter filter)
                    throws org.junit.runner.manipulation.NoTestsRemainException
        Specified by:
        filter in interface org.junit.runner.manipulation.Filterable
        Overrides:
        filter in class org.spockframework.runtime.Sputnik
        Throws:
        org.junit.runner.manipulation.NoTestsRemainException
      • run

        public void run​(org.junit.runner.notification.RunNotifier notifier)
        Overrides:
        run in class org.spockframework.runtime.Sputnik
      • superFilter

        public void superFilter​(org.junit.runner.manipulation.Filter filter)
                         throws org.junit.runner.manipulation.NoTestsRemainException
        Description copied from interface: UnifiedHybrisTestRunner
        Calls super#filter(org.junit.runner.manipulation.Filter)
        Specified by:
        superFilter in interface UnifiedHybrisTestRunner
        Throws:
        org.junit.runner.manipulation.NoTestsRemainException
      • superRun

        public void superRun​(org.junit.runner.notification.RunNotifier notifier)
        Description copied from interface: UnifiedHybrisTestRunner
        Calls super#run(org.junit.runner.notification.RunNotifier)
        Specified by:
        superRun in interface UnifiedHybrisTestRunner