Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mockito-bom = { module = "org.mockito:mockito-bom", version = "5.20.0" }
mockito-core = { module = "org.mockito:mockito-core" }
mockito-junit-jupiter = { module = "org.mockito:mockito-junit-jupiter" }
nohttp-checkstyle = { module = "io.spring.nohttp:nohttp-checkstyle", version = "0.0.11" }
nullaway = { module = "com.uber.nullaway:nullaway", version = "0.12.10" }
nullaway = { module = "com.uber.nullaway:nullaway", version = "0.12.11" }
opentest4j = { module = "org.opentest4j:opentest4j", version.ref = "opentest4j" }
openTestReporting-cli = { module = "org.opentest4j.reporting:open-test-reporting-cli", version.ref = "openTestReporting" }
openTestReporting-events = { module = "org.opentest4j.reporting:open-test-reporting-events", version.ref = "openTestReporting" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void failUsableAsAnExpression() {
long count = Stream.empty()
.peek(element -> fail("peek should never be called"))
.filter(element -> fail("filter should never be called", new Throwable("cause")))
.map(element -> fail(new Throwable("map should never be called")))
.map(element -> Assertions.<Throwable> fail(new Throwable("map should never be called")))
.sorted((e1, e2) -> fail(() -> "sorted should never be called"))
.count();
// @formatter:on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import java.util.function.UnaryOperator;

import org.assertj.core.api.Condition;
import org.jspecify.annotations.Nullable;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -61,10 +62,10 @@ class PreInterruptCallbackTests extends AbstractJupiterTestEngineTests {
private static final String TC = "test";
private static final String TIMEOUT_ERROR_MSG = TC + "() timed out after 1 microsecond";
private static final AtomicBoolean interruptedTest = new AtomicBoolean();
private static final CompletableFuture<Void> testThreadExecutionDone = new CompletableFuture<>();
private static final AtomicReference<Thread> interruptedTestThread = new AtomicReference<>();
private static final CompletableFuture<?> testThreadExecutionDone = new CompletableFuture<>();
private static final AtomicReference<@Nullable Thread> interruptedTestThread = new AtomicReference<>();
private static final AtomicBoolean interruptCallbackShallThrowException = new AtomicBoolean();
private static final AtomicReference<PreInterruptContext> calledPreInterruptContext = new AtomicReference<>();
private static final AtomicReference<@Nullable PreInterruptContext> calledPreInterruptContext = new AtomicReference<>();

@BeforeEach
void setUp() {
Expand Down