Skip to content

Commit

Permalink
Bump Spring Boot from 3.3.6 to 3.4.0
Browse files Browse the repository at this point in the history
closes gh-6
  • Loading branch information
making committed Dec 16, 2024
1 parent 673a2ce commit 244c023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.6</version>
<version>3.4.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>am.ik.translation</groupId>
Expand Down
13 changes: 3 additions & 10 deletions src/test/java/am/ik/translation/TranslationControllerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,16 @@

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.core.io.ClassPathResource;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.util.StreamUtils;
import org.springframework.web.client.DefaultResponseErrorHandler;
import org.springframework.web.client.RestClient;

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.Mockito.never;
Expand All @@ -31,7 +28,7 @@
properties = { "github.webhook-secret=opensesami", "logging.logback.ecs-encoder.enabled=false" })
class TranslationControllerTest {

@MockBean
@MockitoBean
TranslationService translationService;

@Autowired
Expand All @@ -47,11 +44,7 @@ void init() {
if (this.restClient == null) {
this.restClient = this.restClientBuilder.baseUrl("http://localhost:%d".formatted(port))
.defaultHeader("X-GitHub-Event", "issues")
.defaultStatusHandler(new DefaultResponseErrorHandler() {
@Override
public void handleError(ClientHttpResponse response) {

}
.defaultStatusHandler(__ -> true, (req, res) -> {
})
.build();
}
Expand Down

0 comments on commit 244c023

Please sign in to comment.