Class RuleAssert


  • public class RuleAssert
    extends org.fest.assertions.GenericAssert<RuleAssert,​Rule>
    To create a new instance of this class invoke Assertions.assertThat(Rule).

    This class is not intended to be instantiated or subclassed by clients.

    Since:
    1.16
    • Field Summary

      • Fields inherited from class org.fest.assertions.GenericAssert

        actual, myself
    • Constructor Summary

      Constructors 
      Constructor Description
      RuleAssert​(Rule actual)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RuleAssert matches​(String input)
      Verifies that the actual Rule fully matches a given input.
      RuleAssert matchesPrefix​(String prefixToBeMatched, String remainingInput)
      Verifies that the actual Rule partially matches a given input.
      RuleAssert notMatches​(String input)
      Verifies that the actual Rule does not match a given input.
      • Methods inherited from class org.fest.assertions.GenericAssert

        as, as, describedAs, describedAs, doesNotSatisfy, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, overridingErrorMessage, satisfies
      • Methods inherited from class org.fest.assertions.Assert

        customErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWith
    • Constructor Detail

      • RuleAssert

        public RuleAssert​(Rule actual)
    • Method Detail

      • matches

        public RuleAssert matches​(String input)
        Verifies that the actual Rule fully matches a given input.
        Returns:
        this assertion object.
      • notMatches

        public RuleAssert notMatches​(String input)
        Verifies that the actual Rule does not match a given input.
        Returns:
        this assertion object.
      • matchesPrefix

        public RuleAssert matchesPrefix​(String prefixToBeMatched,
                                        String remainingInput)
        Verifies that the actual Rule partially matches a given input.
        Parameters:
        prefixToBeMatched - the prefix that must be fully matched
        remainingInput - the remainder of the input, which is not to be matched
        Returns:
        this assertion object.