We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right now we convert expressions like:
assertTrue(a < 100 && a > 20);
as
assertThat(a < 100 && a > 20).isTrue();
Without doing any kind of crazy magic, I think for trivial cases like this one we can convert to:
assertThat(a).isStrictly(20, 100);
Or, in cases like:
assertTrue(a < 100 && a >= 20);
We could do:
assertThat(a).isLessThan(100).isGreaterThanOrEqualTo(20);
This should be implemented here among the predicate migrations https://github.com/assertj/assertj-migrator/blob/main/src/main/java/com/slinkydeveloper/assertjmigrator/migrations/common/PredicateMigrator.java
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Right now we convert expressions like:
as
Without doing any kind of crazy magic, I think for trivial cases like this one we can convert to:
Or, in cases like:
We could do:
This should be implemented here among the predicate migrations https://github.com/assertj/assertj-migrator/blob/main/src/main/java/com/slinkydeveloper/assertjmigrator/migrations/common/PredicateMigrator.java
The text was updated successfully, but these errors were encountered: