public class GroovyDslGradleBuildAssert extends AbstractTextAssert<GroovyDslGradleBuildAssert>
Constructor and Description |
---|
GroovyDslGradleBuildAssert(Path buildGradleFile) |
GroovyDslGradleBuildAssert(String content) |
Modifier and Type | Method and Description |
---|---|
GroovyDslGradleBuildAssert |
containsOnlyExtProperties(String... values)
Assert
build.gradle contains only the specified properties. |
GroovyDslGradleBuildAssert |
hasPlugin(String id)
Assert
build.gradle defines a plugin with the specified id. |
GroovyDslGradleBuildAssert |
hasPlugin(String id,
String version)
Assert
build.gradle defines a plugin with the specified id and version. |
GroovyDslGradleBuildAssert |
hasProperty(String name,
String value)
Assert
build.gradle defines a top-level property with the specified name
and value. |
GroovyDslGradleBuildAssert |
hasSourceCompatibility(String javaVersion)
Assert
build.gradle uses a source compatibility for the specified java
version. |
GroovyDslGradleBuildAssert |
hasVersion(String version)
Assert
build.gradle uses the specified version . |
containsExactly, hasSameContentAs, lines
decodedAsBase64, isBase64, isBetween, isEqualTo, isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isStrictlyBetween, usingComparator, usingComparator, usingDefaultComparator
contains, contains, containsIgnoringCase, containsOnlyDigits, containsOnlyOnce, containsOnlyWhitespaces, containsPattern, containsPattern, containsSequence, containsSequence, containsSubsequence, containsSubsequence, containsWhitespaces, doesNotContain, doesNotContain, doesNotContainAnyWhitespaces, doesNotContainOnlyWhitespaces, doesNotContainPattern, doesNotContainPattern, doesNotEndWith, doesNotMatch, doesNotMatch, doesNotStartWith, endsWith, hasLineCount, hasSameSizeAs, hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, inHexadecimal, inUnicode, isBlank, isEmpty, isEqualToIgnoringCase, isEqualToIgnoringNewLines, isEqualToIgnoringWhitespace, isEqualToNormalizingNewlines, isEqualToNormalizingPunctuationAndWhitespace, isEqualToNormalizingWhitespace, isJavaBlank, isLowerCase, isNotBlank, isNotEmpty, isNotEqualToIgnoringCase, isNotEqualToIgnoringWhitespace, isNotEqualToNormalizingWhitespace, isNotJavaBlank, isNullOrEmpty, isSubstringOf, isUpperCase, isXmlEqualTo, isXmlEqualToContentOf, matches, matches, startsWith, usingDefaultElementComparator, usingElementComparator
asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, extracting, extracting, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withRepresentation, withThreadDumpOnError
public GroovyDslGradleBuildAssert(String content)
public GroovyDslGradleBuildAssert(Path buildGradleFile)
public GroovyDslGradleBuildAssert hasPlugin(String id, String version)
build.gradle
defines a plugin with the specified id and version.id
- the id of the pluginversion
- the version of the pluginthis
assertion objectpublic GroovyDslGradleBuildAssert hasPlugin(String id)
build.gradle
defines a plugin with the specified id.id
- the id of the pluginthis
assertion objectpublic GroovyDslGradleBuildAssert hasVersion(String version)
build.gradle
uses the specified version
.version
- the version of the buildthis
assertion objectpublic GroovyDslGradleBuildAssert hasSourceCompatibility(String javaVersion)
build.gradle
uses a source compatibility for the specified java
version.javaVersion
- the java versionthis
assertion objectpublic GroovyDslGradleBuildAssert hasProperty(String name, String value)
build.gradle
defines a top-level property with the specified name
and value.name
- the name of the propertyvalue
- the valuethis
assertion objectpublic GroovyDslGradleBuildAssert containsOnlyExtProperties(String... values)
build.gradle
contains only the specified properties.values
- the property value pairsCopyright © 2020 Pivotal Software, Inc.. All rights reserved.