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

Custom assertions generator

Results 68 assertj-assertions-generator issues
Sort by recently updated
recently updated
newest added

I have domain class with property boolean versioned. I have two method public boolean isVersioned() {return versioned;} public boolean isNotVersioned() {return !versioned;} unfortunatelly assertj-assertions-generator-maven-plugin v. 2.0.0 creates isVersioned and isnotVersioned...

Since we have replaced cglib by byte buddy, we need to update the generated soft assertions

The current error messages as defined in the default templates are not is a form that IntelliJ parses for diffs: ``` Expecting someField of: to be: but was: ``` With...

Hi, Could you please assist here? https://github.com/joel-costigliola/assertj-assertions-generator/issues/112#issuecomment-334189742

[Templates explanation](http://joel-costigliola.github.io/assertj/assertj-assertions-generator.html#generated-assertions-templates) [CLI usage guide](http://joel-costigliola.github.io/assertj/assertj-assertions-generator.html#quickstart) `You can change what is generated by modifying the templates used for assertions creation (have a look at templates directory)` It's not clear at all...

For example, if I have: `public final Optional foo;`, the generated assertion is: `hasFoo(java.util.Optional foo)` when it should be: `hasFoo(java.util.Optional foo)`

generics

With 2.1.0 version, the generator is too greedy when encountering a class implementing an `java.lang.Iterable`. It should ignore it unless the type extends `java.util.Collection` (where that make sense) or explicitly...

Hopefully reproducible with the following: ``` > wget -O assertj-assertions-generator-2.0.0-unix.zip https://search.maven.org/remotecontent?filepath=org/assertj/assertj-assertions-generator/2.0.0/assertj-assertions-generator-2.0.0-unix.zip > unzip assertj-assertions-generator-2.0.0-unix.zip > cd assertion-generator/ assertion-generator> mkdir tmp assertion-generator> cd tmp tmp> wget https://jitpack.io/com/github/ga4gh/schemas/d6cc80d/schemas-d6cc80d.jar tmp> wget http://central.maven.org/maven2/com/google/protobuf/protobuf-java/3.0.0-beta-2/protobuf-java-3.0.0-beta-2.jar tmp>...

The generation of asserts for generics does not handle reals (Double or Float) as expected: Double/Float are processed as Objects, while they should be processed as reals. Ex: ``` java...

generics

Not an issue but an idea which probably has been looked into before... An annotation processor which runs while testclasses are being compiled could look at annotations on the testclasses...