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
-
Method Summary
Modifier and TypeMethodDescriptionstatic MavenExecutionResultAssert
assertThat
(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 cache
directory of the project.err()
This will give you access to thestderr
of the Maven build.int
hashCode()
Always returns 1.out()
This will give you access to thestdout
of the Maven build.project()
This will give you access to theproject
directory of the project which is under test.Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hasSameClassAs, hasSameHashCodeAs, 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, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as, as, as, 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 thestdout
of the Maven build.- Returns:
- Stdout
-
err
This will give you access to thestderr
of the Maven build.- Returns:
- Std Err
-
project
This will give you access to theproject
directory of the project which is under test.- Returns:
- The project result.
-
cache
This will give you access to themaven cache
directory of the project.- Returns:
- The cache result
-
isSuccessful
- Returns:
MavenExecutionResultAssert
for method chaining.- Throws:
AssertionError
- if the actual value isnull
.AssertionError
- if the actual value is nottrue
.
-
isFailure
- Returns:
MavenExecutionResultAssert
for method chaining.- Throws:
AssertionError
- if the actual value isnull
.AssertionError
- if the actual value is nottrue
.
-
hashCode
public int hashCode()Always returns 1.- Overrides:
hashCode
in classorg.assertj.core.api.AbstractAssert<MavenExecutionResultAssert,
MavenExecutionResult> - Returns:
- 1.
-