Skip to content

Commit

Permalink
Run ./apply-error-prone-suggestions.sh
Browse files Browse the repository at this point in the history
Nice
  • Loading branch information
werli committed Apr 12, 2024
1 parent 0eea3ac commit 0dfe086
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import java.util.function.Predicate;
import java.util.function.Supplier;
import java.util.stream.Collector;
import org.assertj.core.api.Assertions;
import org.jspecify.annotations.Nullable;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
Expand Down Expand Up @@ -1964,8 +1963,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

0 comments on commit 0dfe086

Please sign in to comment.