-
Notifications
You must be signed in to change notification settings - Fork 116
Maven generate sources for tests
Kristian Karl edited this page Mar 4, 2021
·
7 revisions
The plugin generates interfaces from models that are placed in the folder src/test/resources
.
The models are placed in sub directories to mimic package name structure.
An example of a model that would generate an interface SmallTest
in the package com.company
:
src/test/resources/com/company/SmallTest.graphml
The interface will be generated into:
target/generated-test-sources/graphwalker/com/company/SmallTest.java
$ mvn graphwalker:generate-test-sources
[INFO] Scanning for projects...
[INFO]
[INFO] --------------< org.graphwalker.example:java-prestashop >---------------
[INFO] Building GraphWalker PrestaShop Example 4.3.1
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- graphwalker-maven-plugin:4.3.1:generate-test-sources (default-cli) @ java-prestashop ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.741 s
[INFO] Finished at: 2019-09-28T11:38:48+02:00
[INFO] ------------------------------------------------------------------------