assertj-assertions-generator
assertj-assertions-generator copied to clipboard
Custom assertions generator
I use generateAssertionsInPackage option like following. **Project structure** ```text |-src/main/java | `-sample/ | `-Foo.java `-pom.xml ``` **pom.xml** ```xml sample sample.assertion ``` Assertion class is generated as `sample.assertion.FooAssert`. **FooAssert.java** ```java package...
This PR is trying to fix #140 . I've changed the CI process to use CodeCov code analysis instead of SonarQube. Changed the Java setup to matrix as well, so...
sonar is failing
Bumps commons-lang3 from 3.11 to 3.12.0. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...
The assertions generated uses `org.assertj.core.util.Objects.areEqual` and `org.assertj.core.util.Objects.areEqualArrays` which are deprecated and show in the applications warning logs. Should use the suggested methods instead.
Consider this class: ``` import org.apache.http.client.HttpResponseException; public class SomeErrorException extends HttpResponseException { private SomeError error; public SomeErrorException(int statusCode, String reason, SomeError error) { super(statusCode, reason); this.error = error; } public...
Hi, when I use generated assertions for my DTO, what I really missing is assertion to `null`/not-`null` properties. So I have created this PR and want to know what do...
This is potentially a little vague in its broadness, but here goes. Say we have a value class like e.g. ```java @Value class AccountNumber { String rawValue; } ``` If...
Sketch for #157
Currently, we write: ```java assertThat(myValue.getMyProperty()).isNotNull() ``` Nicer would be: ```java assertThat(myValue).hasAnyMyProperty() ```