Package ubic.gemma.cli.util.test
Class CliAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<CliAssert,,CLI> org.assertj.core.api.Descriptable<CliAssert>,org.assertj.core.api.ExtensionPoints<CliAssert,CLI>
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.assertj.core.api.ThrowableAssert<Exception> fails()Assert that the command fails.failsWith(int exitStatus) Assert that the command fails with the given exit status.org.assertj.core.api.ByteArrayAssertorg.assertj.core.api.ByteArrayAssertsucceeds()Asserts that the command succeeds with a zero exit status.withArguments(String... arguments) Set the arguments passed to the command.withCommandNameOrAlias(String commandNameOrAlias) Set the command name or alias used to execute the command.withConsole(Console console) Set the console to be used for interactive use.withEnvironment(Map<String, String> environment) Set the environment variables to be used when executing the command.withErrorStream(OutputStream errorStream) withInputStream(InputStream inputStream) Set the input stream to be used as standard input for the command.withOutputStream(OutputStream outputStream) Methods inherited from class org.assertj.core.api.AbstractAssert
actual, areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Constructor Details
-
CliAssert
-
-
Method Details
-
withCommandNameOrAlias
Set the command name or alias used to execute the command. -
withArguments
Set the arguments passed to the command. -
withEnvironment
Set the environment variables to be used when executing the command. -
withConsole
Set the console to be used for interactive use. -
withInputStream
Set the input stream to be used as standard input for the command. -
withOutputStream
-
withErrorStream
-
succeeds
Asserts that the command succeeds with a zero exit status. -
fails
Assert that the command fails. -
failsWith
Assert that the command fails with the given exit status. -
exitCause
-
standardOutput
public org.assertj.core.api.ByteArrayAssert standardOutput() -
standardError
public org.assertj.core.api.ByteArrayAssert standardError()
-