JAVA-30993 Upgrade spring-boot-di, spring-boot-aws to spring-boot-3 (#16221)

* JAVA-30993 Upgrade spring-boot-di, spring-boot-aws to spring-boot-3

* JAVA-30993 Revert maven shade plugin version upgrade
This commit is contained in:
anuragkumawat
2024-03-29 11:41:09 +01:00
committed by GitHub
parent a6ea78aa47
commit a822f2ed0c
3 changed files with 25 additions and 11 deletions
@@ -13,10 +13,10 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.actuate.beans.BeansEndpoint.ContextBeans;
import org.springframework.boot.actuate.beans.BeansEndpoint.ContextBeansDescriptor;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.boot.web.server.LocalServerPort;
import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
@@ -54,12 +54,12 @@ public class DisplayBeanIntegrationTest {
@Test
public void givenRestTemplate_whenAccessEndpointUrl_thenHttpStatusOK() throws Exception {
ParameterizedTypeReference<Map<String, ContextBeans>> responseType = new ParameterizedTypeReference<Map<String, ContextBeans>>() {
ParameterizedTypeReference<Map<String, ContextBeansDescriptor>> responseType = new ParameterizedTypeReference<Map<String, ContextBeansDescriptor>>() {
};
RequestEntity<Void> requestEntity = RequestEntity.get(new URI("http://localhost:" + this.mgt + ACTUATOR_PATH + "/beans"))
.accept(MediaType.APPLICATION_JSON)
.build();
ResponseEntity<Map<String, ContextBeans>> entity = this.testRestTemplate.exchange(requestEntity, responseType);
ResponseEntity<Map<String, ContextBeansDescriptor>> entity = this.testRestTemplate.exchange(requestEntity, responseType);
then(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
}