Skip to content

name.remal.assertj-generator

The plugin applies these plugins:

 

This plugin configures AssertJ Assertions Generator. For AssertJ Assertions Generator classpath resolution it creates assertjGenerator configuration with org.assertj:assertj-assertions-generator:2.+ default dependency.

 

The plugin creates assertjGenerate task of type AssertJGenerate. Output of all tasks of this type will become sources for all testSourceSets.

 

name.remal.gradle_plugins.plugins.assertj.AssertJGenerate

Property Type Description
classNames MutableSet<String> Class names to generate AssertJ assertions from.
packageNames MutableSet<String> Package names to generate AssertJ assertions from.
includes MutableSet<String> ANT like include patterns of class files to generate AssertJ assertions from.
excludes MutableSet<String> ANT like excludes patterns of class files to generate AssertJ assertions from.
assertjGeneratorClasspath FileCollection AssertJ Assertions Generator classpath. assertjGenerator configuration by default.
Method Description
void className(String... classNames) Add class names to generate AssertJ assertions from.
void className(Iterable<String> classNames) Add class names to generate AssertJ assertions from.
void packageName(String... packageNames) Add package names to generate AssertJ assertions from.
void packageName(Iterable<String> packageNames) Add package names to generate AssertJ assertions from.
void include(String... includes) Add ANT like include patterns of class files to generate AssertJ assertions from.
void include(Iterable<String> includes) Add ANT like include patterns of class files to generate AssertJ assertions from.
void exclude(String... excludes) Add ANT like exclude patterns of class files to generate AssertJ assertions from.
void exclude(Iterable<String> excludes) Add ANT like exclude patterns of class files to generate AssertJ assertions from.