Interface StringConditions

All Superinterfaces:
Conditions<String>
All Known Implementing Classes:
StringConditionsImpl, StringListConditionsImpl

public interface StringConditions extends Conditions<String>
Conditions API from String.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains (CharSequence charSequence)
    Check that this contains the given sequence of characters.
    boolean
    endsWith (String suffix)
    Check that this ends with the given string.
    boolean
    equalTo (String anotherString)
    Check that this is equal to with the given string.
    boolean
    equalToIgnoreCase (String anotherString)
    Check that this is equal to with the given string, ignoring case.
    boolean
    matches (String regex)
    Check that this matches the given regular expression string.
    boolean
    matches (Pattern pattern)
    Check that this matches the given regular expression pattern.
    not()
    Negates this condition object.
    boolean
    startsWith (String prefix)
    Check that this starts with the given string.

    Methods inherited from interface io.fluentlenium.core.conditions.Conditions

    verify
  • Method Details

    • not

      Description copied from interface: Conditions
      Negates this condition object.
      Specified by:
      not in interface Conditions<String>
      Returns:
      a negated condition object
    • contains

      boolean contains (CharSequence charSequence)
      Check that this contains the given sequence of characters.
      Parameters:
      charSequence - sequence of characters
      Returns:
      true if it contains the given sequence of characters, false otherwise
    • startsWith

      boolean startsWith (String prefix)
      Check that this starts with the given string.
      Parameters:
      prefix - string
      Returns:
      true if it starts with the given string, false otherwise
    • endsWith

      boolean endsWith (String suffix)
      Check that this ends with the given string.
      Parameters:
      suffix - string
      Returns:
      true if it ends with the given string, false otherwise
    • equalTo

      boolean equalTo (String anotherString)
      Check that this is equal to with the given string.
      Parameters:
      anotherString - another string
      Returns:
      true if it is equal to the given string, false otherwise
    • equalToIgnoreCase

      boolean equalToIgnoreCase (String anotherString)
      Check that this is equal to with the given string, ignoring case.
      Parameters:
      anotherString - another string
      Returns:
      true if it is equal to the given string, ignoring case, false otherwise
    • matches

      boolean matches (String regex)
      Check that this matches the given regular expression string.
      Parameters:
      regex - regular expression string
      Returns:
      true if it matches the given regular expression string, false otherwise
    • matches

      boolean matches (Pattern pattern)
      Check that this matches the given regular expression pattern.
      Parameters:
      pattern - regular expression pattern
      Returns:
      true if it matches the given regular expression pattern, false otherwise