testdata_builder.templates.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <templatesConfiguration xmlns="http://capgemini.com/devonfw/cobigen/TemplatesConfiguration" version="2.1"> <templates> <template name="entityBuilder" destinationPath="src/test/java/${variables.rootPackage}/common/builders/${variables.pojoName}Builder.java" templateFile="ObjectBuilder.java.ftl" mergeStrategy="javamerge"/> <template name="entityBuilder_customFunctions" destinationPath="src/test/java/${variables.rootPackage}/common/builders/${variables.pojoName}Builder.java" templateFile="ObjectBuilder_customFunctions.java.ftl" mergeStrategy="javamerge"/> <template name="entityBuilder_fillMandatoryFields" destinationPath="src/test/java/${variables.rootPackage}/common/builders/${variables.pojoName}Builder.java" templateFile="ObjectBuilder_fillMandatoryFields.java.ftl" mergeStrategy="javamerge_override"/> <template name="entityBuilder_persistable" destinationPath="src/test/java/${variables.rootPackage}/common/builders/${variables.pojoName}Builder.java" templateFile="ObjectBuilder_persistable.java.ftl" mergeStrategy="javamerge"/> <template name="P" destinationPath="src/test/java/${variables.rootPackage}/common/builders/P.java" templateFile="P.java.ftl"/> </templates> <increments> <increment name="testdata_builder" description="Testdata builder"> <templateRef ref="P"/> <templateRef ref="entityBuilder"/> <templateRef ref="entityBuilder_fillMandatoryFields"/> <templateRef ref="entityBuilder_customFunctions"/> </increment> <increment name="testdata_builder_persistable" description="Testdata builder (persistable)"> <templateRef ref="P"/> <templateRef ref="entityBuilder"/> <templateRef ref="entityBuilder_fillMandatoryFields"/> <templateRef ref="entityBuilder_customFunctions"/> <templateRef ref="entityBuilder_persistable"/> </increment> </increments> </templatesConfiguration>