public interface AssertJGeneratorOptions
AssertionGenerator.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SOURCE_SET_NAME_TAG |
| Modifier and Type | Method and Description |
|---|---|
AssertJGeneratorOptions |
defaultFromGlobals(org.gradle.api.Project project) |
AssertJGeneratorOptions |
entryPoints(groovy.lang.Closure closure)
Used to change "entry point" class generation.
|
org.assertj.generator.gradle.tasks.config.EntryPointGeneratorOptions |
getEntryPoints()
Contains configuration regarding the "Assertion" entry point class generation.
|
java.nio.file.Path |
getOutputDir(org.gradle.api.tasks.SourceSet sourceSet)
The root directory where all generated files will be placed (within sub-folders for packages).
|
org.assertj.generator.gradle.tasks.config.Templates |
getTemplates()
Generate generating Soft Assertions entry point class.
|
java.lang.Boolean |
isHierarchical()
Flag specifying whether to generate hierarchical assertions.
|
boolean |
isSkip()
Skip generating classes, handy way to disable temporarily.
|
void |
setEntryPoints(org.assertj.assertions.generator.AssertionsEntryPointType... values)
Helper method for simplifying usage in build scripts
|
default void |
setEntryPoints(java.util.Collection<java.lang.String> values)
Exposed for build scripts
|
void |
setHierarchical(boolean hierarchical)
Set the hierarchical value,
null is not allowed here as by setting the value, it has a value. |
void |
setOutputDir(java.io.File outputDir)
Sets the output directory to a file
|
void |
setOutputDir(java.lang.String outputDir)
Sets the output directory to the path passed.
|
void |
setSkip(boolean skip)
Set the config param
skip true |
default AssertJGeneratorOptions |
templates(groovy.lang.Closure closure)
Method used for improving configuration DSL
|
static final java.lang.String SOURCE_SET_NAME_TAG
org.assertj.generator.gradle.tasks.config.Templates getTemplates()
nulldefault AssertJGeneratorOptions templates(groovy.lang.Closure closure)
closure - applied via ConfigureUtil.configure(Closure, Object)thisorg.assertj.generator.gradle.tasks.config.EntryPointGeneratorOptions getEntryPoints()
void setEntryPoints(org.assertj.assertions.generator.AssertionsEntryPointType... values)
values - Values to setdefault void setEntryPoints(java.util.Collection<java.lang.String> values)
values - String values passed from a build scriptAssertJGeneratorOptions entryPoints(groovy.lang.Closure closure)
closure - Applied via ConfigureUtil.configure(Closure, Object)java.nio.file.Path getOutputDir(org.gradle.api.tasks.SourceSet sourceSet)
sourceSet - Source set configured forsourceSetvoid setOutputDir(java.io.File outputDir)
outputDir - File used for an output directorysetOutputDir(String)void setOutputDir(java.lang.String outputDir)
SourceSet#getTaskName('test', '').outputDir - File used for an output directoryjava.lang.Boolean isHierarchical()
void setHierarchical(boolean hierarchical)
null is not allowed here as by setting the value, it has a value.hierarchical - true if hierarchicalisHierarchical()boolean isSkip()
true, set to false before configuration)void setSkip(boolean skip)
skip trueskip - true if skippingisSkip()AssertJGeneratorOptions defaultFromGlobals(org.gradle.api.Project project)