assertj-assertions-generator
assertj-assertions-generator copied to clipboard
Custom assertions generator
Fixes #97 This is a first go in trying to use imports instead of using FQN in the assertions class. I am not sure if this is complete: * Maybe...
Fixes #133 by handling "interface" in the same way as "class" in pulling out generic types.
What do you think about using [JavaPoet](https://github.com/square/javapoet) to generate java source code ? I recommend [this article](http://www.rationaljava.com/2015/12/7-tips-for-successful-code-generation.html) about generation of java code (with JavaPoet).
#### Summary Some classes for which I generate assertion classes contain methods with parameter types that are in the same package. If I then use `` to generate the assertion...
Given a class: ```java public class Blah { private List sequences; public List getSequences() { return sequences; } } ``` the AbstractBlahAssert is generated with code such as: ```java public...
If a class has an `actual` field/property, it clashes with the generated assertion `actual` parameter. In this example, the `actual` parameter clashes with actual object under test in `actual.getActual();` ```java...
Have you considered having an annotation processor that can be used for the generator? I think that it can be done without any direct dependency on AssertJ in the sources....
I am trying to build a library with OpenJDK 11 with the maven-assertj-generator plugin enabled. However, the plugin succeeds, but generates non-compiling code. Has anyone had any succes on running...
Hello, I just find too restrictive the way to combine assertion or may be I missed something, for exemple I would like to write: ObjectA isEqualToComparingFieldByFieldRecursively To ObjectB or To...
Currently if a class has a boolean field / property (say **hideLegend,** the assertion generator produces two methods: **isHideLegend()** and **isNotHideLegend**. It would be really helpful to have an additional...