|Test generated code that includes Maven dependencies [message #1822518]
||Mon, 09 March 2020 09:32
| Niels Heltner
Registered: March 2019
From my DSL I generate Java code which depends on libraries that are resolved through Maven (e.g. a web framework). I would like to write automated tests that test the behavior of the generated classes.
I have looked at the CompilationTestHelper class, which allows me to access the generated classes, but it does not seem like it's able to resolve Maven dependencies.
I have also looked at workbench tests, by extending the AbstractWorkbenchTest class, which seems to be able to resolve Maven dependencies by invoking 'waitForBuild()', but I can't figure out a way to get the generated classes from here.
[Updated on: Mon, 09 March 2020 09:33]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02520 seconds