Start building against Spring Framework 7.1.0-M2 snapshots

See gh-51712
This commit is contained in:
Stéphane Nicoll
2026-09-12 18:19:41 +02:00
parent f7beb3ad3e
commit 4bf6557076
6 changed files with 18 additions and 7 deletions
@@ -77,12 +77,20 @@ class WebPropertiesResourcesTests {
assertThat(cacheControl).isNull(); assertThat(cacheControl).isNull();
} }
@Test
void cacheControlPublic() {
Cache.Cachecontrol properties = this.properties.getCache().getCachecontrol();
properties.setCachePublic(true);
CacheControl cacheControl = properties.toHttpCacheControl();
assertThat(cacheControl).isNotNull();
assertThat(cacheControl.getHeaderValue()).isEqualTo("public");
}
@Test @Test
void cacheControlAllPropertiesSet() { void cacheControlAllPropertiesSet() {
Cache.Cachecontrol properties = this.properties.getCache().getCachecontrol(); Cache.Cachecontrol properties = this.properties.getCache().getCachecontrol();
properties.setMaxAge(Duration.ofSeconds(4)); properties.setMaxAge(Duration.ofSeconds(4));
properties.setCachePrivate(true); properties.setCachePrivate(true);
properties.setCachePublic(true);
properties.setMustRevalidate(true); properties.setMustRevalidate(true);
properties.setNoTransform(true); properties.setNoTransform(true);
properties.setProxyRevalidate(true); properties.setProxyRevalidate(true);
@@ -92,7 +100,7 @@ class WebPropertiesResourcesTests {
CacheControl cacheControl = properties.toHttpCacheControl(); CacheControl cacheControl = properties.toHttpCacheControl();
assertThat(cacheControl).isNotNull(); assertThat(cacheControl).isNotNull();
assertThat(cacheControl.getHeaderValue()) assertThat(cacheControl.getHeaderValue())
.isEqualTo("max-age=4, must-revalidate, no-transform, public, private, proxy-revalidate," .isEqualTo("max-age=4, must-revalidate, no-transform, private, proxy-revalidate,"
+ " s-maxage=5, stale-if-error=6, stale-while-revalidate=7"); + " s-maxage=5, stale-if-error=6, stale-while-revalidate=7");
} }
+1 -1
View File
@@ -22,7 +22,7 @@ nativeBuildToolsVersion=1.1.12
nullabilityPluginVersion=0.0.15 nullabilityPluginVersion=0.0.15
snakeYamlVersion=2.7 snakeYamlVersion=2.7
springGrpcVersion=1.1.1 springGrpcVersion=1.1.1
springFrameworkVersion=7.1.0-M1 springFrameworkVersion=7.1.0-SNAPSHOT
springFramework60xVersion=6.0.23 springFramework60xVersion=6.0.23
tomcatVersion=11.0.25 tomcatVersion=11.0.25
protobufGradlePluginVersion=0.9.6 protobufGradlePluginVersion=0.9.6
@@ -100,6 +100,7 @@ public enum EmbeddedDatabaseConnection {
* Returns the {@link EmbeddedDatabaseType} for the connection. * Returns the {@link EmbeddedDatabaseType} for the connection.
* @return the database type * @return the database type
*/ */
@SuppressWarnings("removal")
public @Nullable EmbeddedDatabaseType getType() { public @Nullable EmbeddedDatabaseType getType() {
// See https://github.com/spring-projects/spring-boot/issues/32865 // See https://github.com/spring-projects/spring-boot/issues/32865
return switch (this) { return switch (this) {
@@ -111,6 +111,8 @@ class EmbeddedDatabaseConnectionTests {
} }
@Test @Test
@Deprecated(since = "4.2.0", forRemoval = true)
@SuppressWarnings("removal")
void isEmbeddedWithDerbyDataSource() { void isEmbeddedWithDerbyDataSource() {
testEmbeddedDatabase(new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.DERBY).build()); testEmbeddedDatabase(new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.DERBY).build());
} }