Package org.sonar.sslr.tests
Class RuleAssert
- java.lang.Object
-
- org.fest.assertions.Assert
-
- org.fest.assertions.GenericAssert<RuleAssert,Rule>
-
- org.sonar.sslr.tests.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
-
-
Constructor Summary
Constructors Constructor Description RuleAssert(Rule actual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleAssertmatches(String input)Verifies that the actualfully matches a given input.RuleRuleAssertmatchesPrefix(String prefixToBeMatched, String remainingInput)Verifies that the actualpartially matches a given input.RuleRuleAssertnotMatches(String input)Verifies that the actualdoes not match a given input.Rule-
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
-
-
-
-
Constructor Detail
-
RuleAssert
public RuleAssert(Rule actual)
-
-
Method Detail
-
matches
public RuleAssert matches(String input)
Verifies that the actualfully matches a given input.Rule- Returns:
- this assertion object.
-
notMatches
public RuleAssert notMatches(String input)
Verifies that the actualdoes not match a given input.Rule- Returns:
- this assertion object.
-
matchesPrefix
public RuleAssert matchesPrefix(String prefixToBeMatched, String remainingInput)
Verifies that the actualpartially matches a given input.Rule- Parameters:
prefixToBeMatched- the prefix that must be fully matchedremainingInput- the remainder of the input, which is not to be matched- Returns:
- this assertion object.
-
-