Class AsadminResultMatcher
java.lang.Object
org.hamcrest.BaseMatcher<AsadminResult>
org.hamcrest.TypeSafeMatcher<AsadminResult>
org.hamcrest.CustomTypeSafeMatcher<AsadminResult>
org.glassfish.main.itest.tools.asadmin.AsadminResultMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<AsadminResult>,org.hamcrest.SelfDescribing
Matcher checking that
Asadmin command succeeded. Prints its output otherwise.- Author:
- David Matejcek
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.CustomTypeSafeMatcher<AsadminResult> asadminError(String expectedErrorMessage) Returns true if the command failed and contains the specified message in stderrstatic org.hamcrest.CustomTypeSafeMatcher<AsadminResult> protected booleanmatchesSafely(AsadminResult item) Methods inherited from class org.hamcrest.CustomTypeSafeMatcher
describeToMethods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<AsadminResult>
-
asadminOK
- Returns:
- matcher checking that
Asadmincommand succeeded. Prints it's output otherwise.
-
asadminError
public static org.hamcrest.CustomTypeSafeMatcher<AsadminResult> asadminError(String expectedErrorMessage) Returns true if the command failed and contains the specified message in stderr- Parameters:
expectedErrorMessage- A message that should appear in the stderr to match this error- Returns:
- matcher checking that
Asadmincommand failed.
-