Class GradleBuildAssert<SELF extends GradleBuildAssert<SELF>>
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractCharSequenceAssert<SELF,String>
org.assertj.core.api.AbstractStringAssert<SELF>
io.spring.initializr.generator.test.io.AbstractTextAssert<SELF>
io.spring.initializr.generator.test.buildsystem.gradle.GradleBuildAssert<SELF>
- Type Parameters:
SELF
- the type of the concrete assert implementations
- All Implemented Interfaces:
org.assertj.core.api.Assert<SELF,
,String> org.assertj.core.api.Descriptable<SELF>
,org.assertj.core.api.EnumerableAssert<SELF,
,Character> org.assertj.core.api.ExtensionPoints<SELF,
String>
- Direct Known Subclasses:
GroovyDslGradleBuildAssert
,KotlinDslGradleBuildAssert
public abstract class GradleBuildAssert<SELF extends GradleBuildAssert<SELF>>
extends AbstractTextAssert<SELF>
Base class for Gradle build assertions.
- Author:
- Stephane Nicoll
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontainsOnlyExtProperties
(String... values) Assert the Gradlebuild
contains only the specified properties.hasProperty
(String name, String value) Assert the Gradlebuild
defines a top-level property with the specified name and value.hasSourceCompatibility
(String javaVersion) Assert the Gradlebuild
uses a source compatibility for the specified java version.hasVersion
(String version) Assert the Gradlebuild
uses the specifiedversion
.Methods inherited from class io.spring.initializr.generator.test.io.AbstractTextAssert
contains, containsExactly, hasSameContentAs, lines
Methods inherited from class org.assertj.core.api.AbstractStringAssert
asBase64Decoded, decodedAsBase64, isBase64, isBetween, isEqualTo, isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isStrictlyBetween, usingComparator, usingComparator, usingDefaultComparator
Methods inherited from class org.assertj.core.api.AbstractCharSequenceAssert
contains, contains, containsAnyOf, containsIgnoringCase, containsIgnoringNewLines, containsIgnoringWhitespaces, containsOnlyDigits, containsOnlyOnce, containsOnlyWhitespaces, containsPattern, containsPattern, containsPatternSatisfying, containsPatternSatisfying, containsSequence, containsSequence, containsSubsequence, containsSubsequence, containsWhitespaces, doesNotContain, doesNotContain, doesNotContainAnyWhitespaces, doesNotContainIgnoringCase, doesNotContainOnlyWhitespaces, doesNotContainPattern, doesNotContainPattern, doesNotEndWith, doesNotEndWithIgnoringCase, doesNotMatch, doesNotMatch, doesNotStartWith, doesNotStartWithIgnoringCase, endsWith, endsWithIgnoringCase, hasLineCount, hasSameSizeAs, hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, inHexadecimal, inUnicode, isAlphabetic, isAlphanumeric, isASCII, isBlank, isEmpty, isEqualToIgnoringCase, isEqualToIgnoringNewLines, isEqualToIgnoringWhitespace, isEqualToNormalizingNewlines, isEqualToNormalizingPunctuationAndWhitespace, isEqualToNormalizingUnicode, isEqualToNormalizingWhitespace, isHexadecimal, isJavaBlank, isLowerCase, isMixedCase, isNotBlank, isNotEmpty, isNotEqualToIgnoringCase, isNotEqualToIgnoringWhitespace, isNotEqualToNormalizingWhitespace, isNotJavaBlank, isNullOrEmpty, isPrintable, isSubstringOf, isUpperCase, isVisible, isXmlEqualTo, isXmlEqualToContentOf, matches, matches, matchesSatisfying, matchesSatisfying, startsWith, startsWithIgnoringCase, usingDefaultElementComparator, usingElementComparator
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, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, 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, 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
-
GradleBuildAssert
-
-
Method Details
-
hasVersion
Assert the Gradlebuild
uses the specifiedversion
.- Parameters:
version
- the version of the build- Returns:
this
assertion object
-
hasSourceCompatibility
Assert the Gradlebuild
uses a source compatibility for the specified java version.- Parameters:
javaVersion
- the java version- Returns:
this
assertion object
-
hasProperty
Assert the Gradlebuild
defines a top-level property with the specified name and value.- Parameters:
name
- the name of the propertyvalue
- the value- Returns:
this
assertion object
-
containsOnlyExtProperties
Assert the Gradlebuild
contains only the specified properties.- Parameters:
values
- the property value pairs- Returns:
this
assertion object
-