Upgrade to AssertJ 3.23.1

Closes gh-31331
This commit is contained in:
Andy Wilkinson
2022-06-10 12:58:00 +01:00
parent 228be786ca
commit d4be484d27
7 changed files with 11 additions and 11 deletions

View File

@@ -433,7 +433,7 @@ class IntegrationAutoConfigurationTests {
"spring.integration.poller.fixed-delay=1s")
.run((context) -> assertThat(context).hasFailed().getFailure()
.hasRootCauseExactlyInstanceOf(MutuallyExclusiveConfigurationPropertiesException.class)
.getRootCause()
.rootCause()
.asInstanceOf(
InstanceOfAssertFactories.type(MutuallyExclusiveConfigurationPropertiesException.class))
.satisfies((ex) -> {

View File

@@ -102,7 +102,7 @@ class R2dbcAutoConfigurationTests {
this.contextRunner
.withPropertyValues("spring.r2dbc.url:r2dbc:pool:h2:mem:///" + randomDatabaseName() + "?maxSize=12",
"spring.r2dbc.pool.max-size=15")
.run((context) -> assertThat(context).getFailure().getRootCause()
.run((context) -> assertThat(context).getFailure().rootCause()
.isInstanceOf(MultipleConnectionPoolConfigurationsException.class));
}
@@ -111,7 +111,7 @@ class R2dbcAutoConfigurationTests {
this.contextRunner
.withPropertyValues("spring.r2dbc.url:r2dbc:pool:h2:mem:///" + randomDatabaseName() + "?maxSize=12",
"spring.r2dbc.pool.enabled=false")
.run((context) -> assertThat(context).getFailure().getRootCause()
.run((context) -> assertThat(context).getFailure().rootCause()
.isInstanceOf(MultipleConnectionPoolConfigurationsException.class));
}

View File

@@ -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.
@@ -63,7 +63,7 @@ class R2dbcAutoConfigurationWithoutConnectionPoolTests {
.withPropertyValues("spring.r2dbc.pool.enabled=true",
"spring.r2dbc.url:r2dbc:h2:mem:///" + randomDatabaseName()
+ "?options=DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE")
.run((context) -> assertThat(context).getFailure().getRootCause()
.run((context) -> assertThat(context).getFailure().rootCause()
.isInstanceOf(MissingR2dbcPoolDependencyException.class));
}
@@ -72,7 +72,7 @@ class R2dbcAutoConfigurationWithoutConnectionPoolTests {
this.contextRunner
.withPropertyValues("spring.r2dbc.url:r2dbc:pool:h2:mem:///" + randomDatabaseName()
+ "?options=DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE")
.run((context) -> assertThat(context).getFailure().getRootCause()
.run((context) -> assertThat(context).getFailure().rootCause()
.isInstanceOf(MissingR2dbcPoolDependencyException.class));
}

View File

@@ -863,7 +863,7 @@ class WebMvcAutoConfigurationTests {
this.contextRunner
.withPropertyValues("spring.mvc.pathmatch.matching-strategy:path_pattern_parser",
"spring.mvc.pathmatch.use-suffix-pattern:true")
.run((context) -> assertThat(context.getStartupFailure()).getRootCause()
.run((context) -> assertThat(context.getStartupFailure()).rootCause()
.isInstanceOf(IncompatibleConfigurationException.class));
}