From 16fda2750ded155765056ff8acbea5c0fa80a062 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Sat, 7 Oct 2023 09:22:03 +0200 Subject: [PATCH] Suggestion --- .../picnic/errorprone/refasterrules/ReactorRulesTestInput.java | 2 +- .../picnic/errorprone/refasterrules/ReactorRulesTestOutput.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestInput.java b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestInput.java index bdadd33e1f..f077307dcd 100644 --- a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestInput.java +++ b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestInput.java @@ -520,7 +520,7 @@ ImmutableSet testStepVerifierLastStepVerifyErrorClass() { StepVerifier.create(Mono.empty()) .verifyErrorMatches(IllegalStateException.class::isInstance), StepVerifier.create(Mono.empty()) - .verifyErrorSatisfies(t -> assertThat(t).isInstanceOf(IllegalStateException.class))); + .verifyErrorSatisfies(t -> assertThat(t).isInstanceOf(AssertionError.class))); } Duration testStepVerifierLastStepVerifyErrorMatches() { diff --git a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestOutput.java b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestOutput.java index 8c0060a759..e762c242ad 100644 --- a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestOutput.java +++ b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestOutput.java @@ -502,7 +502,7 @@ ImmutableSet testStepVerifierLastStepVerifyErrorClass() { return ImmutableSet.of( StepVerifier.create(Mono.empty()).verifyError(IllegalArgumentException.class), StepVerifier.create(Mono.empty()).verifyError(IllegalStateException.class), - StepVerifier.create(Mono.empty()).verifyError(IllegalStateException.class)); + StepVerifier.create(Mono.empty()).verifyError(AssertionError.class)); } Duration testStepVerifierLastStepVerifyErrorMatches() {