Skip to content

Commit

Permalink
chore(deps): update spring boot to v3.0.6 (#2404)
Browse files Browse the repository at this point in the history
* chore(deps): update spring boot to v3.0.6

* fix test

* fix test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Stephan Köninger <stephan.koeninger@codecentric.de>
  • Loading branch information
renovate[bot] and SteKoe committed Apr 21, 2023
1 parent 1c10983 commit a9827b4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<!-- used dependencies versions -->
<spring-boot.version>3.0.5</spring-boot.version>
<spring-boot.version>3.0.6</spring-boot.version>
<spring-cloud.version>2022.0.2</spring-cloud.version>
<wiremock.version>2.35.0</wiremock.version>
<hazelcast-tests.version>5.2.3</hazelcast-tests.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,12 @@ public void should_return_correct_content_type_for_js_extensions() {
.header("Accept", "*/*")
.exchange()
.expectStatus().isOk()
.expectHeader().contentType(MediaType.parseMediaType("application/javascript"));
.expectHeader().contentType(getExpectedMediaTypeForJavaScript());
//@formatter:on
}

abstract MediaType getExpectedMediaTypeForJavaScript();

@Test
public void should_return_correct_content_type_for_css_extensions() {
//@formatter:off
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.http.MediaType;
import org.springframework.security.config.web.server.ServerHttpSecurity;
import org.springframework.security.web.server.SecurityWebFilterChain;

Expand Down Expand Up @@ -57,6 +58,11 @@ public void setupEach() {
super.setUp(port);
}

@Override
MediaType getExpectedMediaTypeForJavaScript() {
return MediaType.parseMediaType("application/javascript");
}

@EnableAdminServer
@EnableAutoConfiguration
@SpringBootConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.web.SecurityFilterChain;

Expand All @@ -50,6 +51,11 @@ public void shutdown() {
this.instance.close();
}

@Override
MediaType getExpectedMediaTypeForJavaScript() {
return MediaType.parseMediaType("text/javascript");
}

@EnableAdminServer
@EnableAutoConfiguration
@SpringBootConfiguration
Expand Down

0 comments on commit a9827b4

Please sign in to comment.