mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Revert "Register runtime hints for OutputCapture"
This reverts commit 35abc3a6dc
.
This commit is contained in:
parent
35abc3a6dc
commit
512a4c7544
@ -21,19 +21,14 @@ import java.io.OutputStream;
|
||||
import java.io.PrintStream;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Deque;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
import org.springframework.aot.hint.ExecutableMode;
|
||||
import org.springframework.aot.hint.RuntimeHints;
|
||||
import org.springframework.aot.hint.TypeReference;
|
||||
import org.springframework.boot.ansi.AnsiOutput;
|
||||
import org.springframework.boot.ansi.AnsiOutput.Enabled;
|
||||
import org.springframework.test.context.aot.TestRuntimeHintsRegistrar;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
@ -344,15 +339,4 @@ class OutputCapture implements CapturedOutput {
|
||||
|
||||
}
|
||||
|
||||
static class OutputCaptureRuntimeHints implements TestRuntimeHintsRegistrar {
|
||||
|
||||
@Override
|
||||
public void registerHints(RuntimeHints runtimeHints, Class<?> testClass, ClassLoader classLoader) {
|
||||
runtimeHints.reflection().registerType(TypeReference.of(OutputCapture.class),
|
||||
(hint) -> hint.onReachableType(OutputCaptureExtension.class)
|
||||
.withConstructor(Collections.emptyList(), ExecutableMode.INVOKE));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,3 +0,0 @@
|
||||
# Runtime hints for tests
|
||||
org.springframework.test.context.aot.TestRuntimeHintsRegistrar=\
|
||||
org.springframework.boot.test.system.OutputCapture.OutputCaptureRuntimeHints
|
Loading…
Reference in New Issue
Block a user