How to unit test ModuleLevelBuilder/BuilderService

Answered

Hi, we have our implementation of MuduleLevelBuilder for Gosu Language (it is interoperable with Java, and we may need to compile classes when Java code was changed). And we would like to add unit tests for ensuring our implementation works as we expect.
Problem is I wasn't able to find out any obvious examples of this how to unit test Builders or BuilderServices.
Any suggestions?

0
2 comments

You can looks how its done for our ResourcesBuilder in ResourceCopyingTest. Unfortunately the required test classes aren't published as proper Maven artifacts yet, I've created an issue about that. Until it's fixed you can simply copy JpsBuildTestCase and other required classes to your project.

1

Yeah, this seems to do a trick :-)

Thank you

0

Please sign in to leave a comment.