Package 

Annotation WithJunitRule

    • Method Summary

      Modifier and Type Method Description
      abstract boolean useAsTestClassInDescription() By default Cucumber treats feature as test class which is not real classand cannot be treated as such in runtime.E.
      abstract String value() Tag expression.
      • Methods inherited from class java.lang.annotation.Annotation

        annotationType, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

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

      • useAsTestClassInDescription

         abstract boolean useAsTestClassInDescription()

        By default Cucumber treats feature as test class which is not real classand cannot be treated as such in runtime.E.g HiltAndroidRule relies on having test class passed to its constructor matchingthat passed to org.junit.runner.Description

      • value

         abstract String value()

        Tag expression. If the expression applies to the current scenario JUnit rule declared in class annotated by WithJunitRule will be used