Package com.soebes.itf.extension.assertj
Class MavenProjectResultAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<MavenProjectResultAssert,MavenProjectResult>
com.soebes.itf.extension.assertj.MavenProjectResultAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<MavenProjectResultAssert,,MavenProjectResult> org.assertj.core.api.Descriptable<MavenProjectResultAssert>,org.assertj.core.api.ExtensionPoints<MavenProjectResultAssert,MavenProjectResult>
public class MavenProjectResultAssert
extends org.assertj.core.api.AbstractAssert<MavenProjectResultAssert,MavenProjectResult>
- 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 MavenProjectResultAssertassertThat(MavenProjectResult actual) An entry point for MavenExecutionResultAssert to follow AssertJ standardassertThat()statements.
With a static import, one's can write directly :assertThat(result).isSuccessful();inthashCode()Always returns 1.A module can have a `target` directory or but in contradiction to a an aggregator project which does not have a `target` directory.org.assertj.core.api.AbstractPathAssert<?>withModule(String moduleName) 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, 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, 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
-
Constructor Details
-
MavenProjectResultAssert
MavenProjectResultAssert(MavenProjectResult actual)
-
-
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
MavenProjectResultAssert
-
hasTarget
-
has
-
withFile
-
withEarFile
-
withJarFile
-
withWarFile
-
withRarFile
-
contains
-
hasModule
A module can have a `target` directory or but in contradiction to a an aggregator project which does not have a `target` directory. So it shouldn't be checked.- Parameters:
moduleName- The name of the module.- Returns:
MavenProjectResultAssert
-
withModule
-
isEqualTo
- Specified by:
isEqualToin interfaceorg.assertj.core.api.Assert<MavenProjectResultAssert,MavenProjectResult> - Overrides:
isEqualToin classorg.assertj.core.api.AbstractAssert<MavenProjectResultAssert,MavenProjectResult>
-
hashCode
public int hashCode()Always returns 1.- Overrides:
hashCodein classorg.assertj.core.api.AbstractAssert<MavenProjectResultAssert,MavenProjectResult> - Returns:
- 1.
-