Package org.camunda.community.bpmndt
Class Generator
java.lang.Object
org.camunda.community.bpmndt.Generator
Class that is responsible for generating test code and writing the generated files to the test source directory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(GeneratorContext ctx) protected voidprotected voidprotected voidprotected voidgenerateTestCases(GeneratorContext gCtx, Path bpmnFile) protected voidgenerateTestCases(GeneratorContext gCtx, Path bpmnFile, List<TestCase> testCases) static StringtoJavaLiteral(String id) Converts the given BPMN element ID into a Java literal, which can be used when generating source code.static StringConverts the given BPMN element ID into a literal, which can be used when generating source code.
-
Constructor Details
-
Generator
public Generator()
-
-
Method Details
-
toJavaLiteral
Converts the given BPMN element ID into a Java literal, which can be used when generating source code. The conversion lowers all characters and retains letters as well as digits. All other characters are converted into underscores. If the literal starts with a digit, an additional underscore is prepended.- Parameters:
id- The ID of a specific flow node or process.- Returns:
- A Java conform literal.
-
toLiteral
Converts the given BPMN element ID into a literal, which can be used when generating source code. The conversion retains letters and digits. All other characters are converted into underscores. Moreover, upper case is also retained.- Parameters:
id- The ID of a specific flow node or process.- Returns:
- A conform literal.
-
generate
-
generateMultiInstanceHandlers
-
generateMultiInstanceScopeHandlers
-
generateSpringConfiguration
-
generateTestCases
-
generateTestCases
-
getResult
-