Use more flexible SpringFactoriesLoader
Closes gh-30235 Co-authored-by: Madhura Bhave <bhavem@vmware.com> Co-authored-by: Stephane Nicoll <snicoll@vmware.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -28,7 +28,7 @@ class MyConditionEvaluationReportingTests {
|
||||
void autoConfigTest() {
|
||||
// @formatter:off
|
||||
new ApplicationContextRunner()
|
||||
.withInitializer(new ConditionEvaluationReportLoggingListener(LogLevel.INFO))
|
||||
.withInitializer(ConditionEvaluationReportLoggingListener.forLogLevel(LogLevel.INFO))
|
||||
.run((context) -> {
|
||||
// Test something...
|
||||
});
|
||||
|
||||
@@ -28,7 +28,7 @@ class MyConditionEvaluationReportingTests {
|
||||
@Test
|
||||
fun autoConfigTest() {
|
||||
ApplicationContextRunner()
|
||||
.withInitializer(ConditionEvaluationReportLoggingListener(LogLevel.INFO))
|
||||
.withInitializer(ConditionEvaluationReportLoggingListener.forLogLevel(LogLevel.INFO))
|
||||
.run { context: AssertableApplicationContext? -> }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user