parent
dec46b45d7
commit
4c8cabcb3a
|
@ -128,7 +128,7 @@ public class OutputCaptureExtension
|
||||||
}
|
}
|
||||||
|
|
||||||
private OutputCapture getOutputCapture(ExtensionContext context) {
|
private OutputCapture getOutputCapture(ExtensionContext context) {
|
||||||
return getStore(context).getOrComputeIfAbsent(OutputCapture.class, (key) -> new OutputCapture(),
|
return getStore(context).computeIfAbsent(OutputCapture.class, (key) -> new OutputCapture(),
|
||||||
OutputCapture.class);
|
OutputCapture.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ hamcrestVersion=3.0
|
||||||
jackson2Version=2.20.0
|
jackson2Version=2.20.0
|
||||||
jacksonVersion=3.0.0-rc9
|
jacksonVersion=3.0.0-rc9
|
||||||
javaFormatVersion=0.0.47
|
javaFormatVersion=0.0.47
|
||||||
junitJupiterVersion=5.13.4
|
junitJupiterVersion=6.0.0
|
||||||
kotlinVersion=2.2.10
|
kotlinVersion=2.2.10
|
||||||
mavenVersion=3.9.10
|
mavenVersion=3.9.10
|
||||||
mockitoVersion=5.19.0
|
mockitoVersion=5.19.0
|
||||||
|
|
|
@ -168,7 +168,7 @@ class JtaAutoConfigurationTests {
|
||||||
public void beforeEach(ExtensionContext context) throws Exception {
|
public void beforeEach(ExtensionContext context) throws Exception {
|
||||||
Namespace namespace = Namespace.create(getClass(), context.getUniqueId());
|
Namespace namespace = Namespace.create(getClass(), context.getUniqueId());
|
||||||
context.getStore(namespace)
|
context.getStore(namespace)
|
||||||
.getOrComputeIfAbsent(InitialContext.class, (k) -> createInitialContext(), InitialContext.class);
|
.computeIfAbsent(InitialContext.class, (k) -> createInitialContext(), InitialContext.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
private InitialContext createInitialContext() {
|
private InitialContext createInitialContext() {
|
||||||
|
|
|
@ -103,7 +103,7 @@ public class OutputCaptureExtension
|
||||||
}
|
}
|
||||||
|
|
||||||
private OutputCapture getOutputCapture(ExtensionContext context) {
|
private OutputCapture getOutputCapture(ExtensionContext context) {
|
||||||
return getStore(context).getOrComputeIfAbsent(OutputCapture.class);
|
return getStore(context).computeIfAbsent(OutputCapture.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Store getStore(ExtensionContext context) {
|
private Store getStore(ExtensionContext context) {
|
||||||
|
|
Loading…
Reference in New Issue