Package com.soebes.itf.extension.assertj
Class MavenExecutionResultAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<MavenExecutionResultAssert,MavenExecutionResult>
com.soebes.itf.extension.assertj.MavenExecutionResultAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<MavenExecutionResultAssert,,MavenExecutionResult> org.assertj.core.api.Descriptable<MavenExecutionResultAssert>,org.assertj.core.api.ExtensionPoints<MavenExecutionResultAssert,MavenExecutionResult>
@API(status=EXPERIMENTAL,
since="0.8.0")
public class MavenExecutionResultAssert
extends org.assertj.core.api.AbstractAssert<MavenExecutionResultAssert,MavenExecutionResult>
- Author:
- Karl Heinz Marbaise
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MavenExecutionResultAssertassertThat(MavenExecutionResult actual) An entry point for MavenExecutionResultAssert to follow AssertJ standardassertThat()statements.
With a static import, one's can write directly :assertThat(result).isSuccessful();cache()This will give you access to themaven cachedirectory of the project.err()This will give you access to thestderrof the Maven build.inthashCode()Always returns 1.out()This will give you access to thestdoutof the Maven build.project()This will give you access to theprojectdirectory of the project which is under test.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, 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
-
MavenExecutionResultAssert
-
-
Method Details
-
assertThat
An entry point for MavenExecutionResultAssert to follow AssertJ standardassertThat()statements.
With a static import, one's can write directly :assertThat(result).isSuccessful();- Parameters:
actual- the MavenExecutionResult we want to make assertions on.- Returns:
- a new
MavenExecutionResultAssert
-
out
This will give you access to thestdoutof the Maven build.- Returns:
- Stdout
-
err
This will give you access to thestderrof the Maven build.- Returns:
- Std Err
-
project
This will give you access to theprojectdirectory of the project which is under test.- Returns:
- The project result.
-
cache
This will give you access to themaven cachedirectory of the project.- Returns:
- The cache result
-
isSuccessful
- Returns:
MavenExecutionResultAssertfor method chaining.- Throws:
AssertionError- if the actual value isnull.AssertionError- if the actual value is nottrue.
-
isFailure
- Returns:
MavenExecutionResultAssertfor method chaining.- Throws:
AssertionError- if the actual value isnull.AssertionError- if the actual value is nottrue.
-
hashCode
public int hashCode()Always returns 1.- Overrides:
hashCodein classorg.assertj.core.api.AbstractAssert<MavenExecutionResultAssert,MavenExecutionResult> - Returns:
- 1.
-