mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Start building against Spring Framework 7.1.0-M2 snapshots
See gh-51712
This commit is contained in:
+10
-2
@@ -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
@@ -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
|
||||||
|
|||||||
+1
@@ -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) {
|
||||||
|
|||||||
+2
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user