Class TestNamePrefixFilter

  • All Implemented Interfaces:
    DynamicFilter

    @Deprecated
    public class TestNamePrefixFilter
    extends java.lang.Object
    implements DynamicFilter
    Deprecated.
    A dynamic filter that matches test name using prefix string
    • Constructor Summary

      Constructors 
      Constructor Description
      TestNamePrefixFilter​(java.lang.String prefix)
      Deprecated.
      Construct the filter from test name prefix string
    • Constructor Detail

      • TestNamePrefixFilter

        public TestNamePrefixFilter​(java.lang.String prefix)
        Deprecated.
        Construct the filter from test name prefix string
        Parameters:
        prefix - prefix string matches the test names
        Throws:
        java.lang.IllegalArgumentException - if prefix is empty string
    • Method Detail

      • getPrefix

        public java.lang.String getPrefix()
        Deprecated.
      • matches

        public boolean matches​(@Nullable
                               java.lang.String testName,
                               ConsumableTestDefinition testDefinition)
        Deprecated.
        Specified by:
        matches in interface DynamicFilter
        Parameters:
        testName - if null or empty string, only match testDefinition
        Returns:
        true if the testname or the definition match the filter
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object