assertj-assertions-generator-maven-plugin icon indicating copy to clipboard operation
assertj-assertions-generator-maven-plugin copied to clipboard

Allow for client-specified name for Assertions class

Open dancerjohn opened this issue 7 years ago • 1 comments

The generated entry-point class is called Assertions. If I am using the std Assertions class and my generated Assertions class in the same test, I can only import one which means the usage of the other has to be fully qualified. It would be nice to be able to add a prefix so that the generated entry-point classes are name MyProjectAssertsion, MyProjectJUnitAssertions, etc.

dancerjohn avatar May 16 '18 18:05 dancerjohn

This would require an update AssertionsEntryPointGenerator.generateAssertionsEntryPointClassFor in assertj-assertions-generator to take an optional file name prefix. My question is, is it OK to change the method signature if I update the plugin or would an overload be better?

If this suggestion seems like a good idea, I will take a stab at it.

dancerjohn avatar May 16 '18 19:05 dancerjohn