Skip to content
New issue

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

Introduce assorted Reactor StepVerifier Refaster rules #1132

Merged
merged 9 commits into from
Nov 11, 2024
Prev Previous commit
Next Next commit
Run ./apply-error-prone-suggestions.sh
Nice
  • Loading branch information
werli authored and Stephan202 committed Nov 11, 2024
commit 62d4f7eb0f2090ab055cfc225620b226b3dcc484
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import java.util.function.Supplier;
import java.util.stream.Collector;
import java.util.stream.Stream;
import org.assertj.core.api.Assertions;
import org.jspecify.annotations.Nullable;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
Expand Down Expand Up @@ -1971,8 +1970,7 @@ void before(StepVerifier.LastStep step, Class<? extends Throwable> clazz, String
@AfterTemplate
@UseImportPolicy(STATIC_IMPORT_ALWAYS)
void after(StepVerifier.LastStep step, Class<? extends Throwable> clazz, String message) {
step.verifyErrorSatisfies(
t -> Assertions.assertThat(t).isInstanceOf(clazz).hasMessage(message));
step.verifyErrorSatisfies(t -> assertThat(t).isInstanceOf(clazz).hasMessage(message));
}
}

Expand Down