Class QualifierFinder

java.lang.Object
net.serenitybdd.junit.runners.QualifierFinder

public class QualifierFinder
extends java.lang.Object
When running data-driven tests, each set of test data needs a way to distinguish it from the others. This class provides means to distinguish instantiated test cases. By default, the toString() method is used. If a public method that returns a String is marked with the Qualifier annotation, this method will be used instead.
  • Constructor Summary

    Constructors 
    Constructor Description
    QualifierFinder​(java.lang.Object testCase)  
  • Method Summary

    Modifier and Type Method Description
    static QualifierFinder forTestCase​(java.lang.Object testCase)  
    java.lang.String getQualifier()  

    Methods inherited from class java.lang.Object

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

    • QualifierFinder

      public QualifierFinder​(java.lang.Object testCase)
  • Method Details

    • forTestCase

      public static QualifierFinder forTestCase​(java.lang.Object testCase)
    • getQualifier

      public java.lang.String getQualifier()