Closes gh-32870
@ -104,7 +104,8 @@ public class OutputCaptureExtension
}
private OutputCapture getOutputCapture(ExtensionContext context) {
return getStore(context).getOrComputeIfAbsent(OutputCapture.class);
return getStore(context).getOrComputeIfAbsent(OutputCapture.class, (key) -> new OutputCapture(),
OutputCapture.class);
private Store getStore(ExtensionContext context) {