mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Start building against Spring Framework 6.1.0-M3 snapshots
See gh-36443
This commit is contained in:
parent
71406977c2
commit
289d458a60
@ -6,7 +6,7 @@ org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
|
|||||||
|
|
||||||
kotlinVersion=1.8.22
|
kotlinVersion=1.8.22
|
||||||
nativeBuildToolsVersion=0.9.23
|
nativeBuildToolsVersion=0.9.23
|
||||||
springFrameworkVersion=6.1.0-M2
|
springFrameworkVersion=6.1.0-SNAPSHOT
|
||||||
tomcatVersion=10.1.11
|
tomcatVersion=10.1.11
|
||||||
|
|
||||||
kotlin.stdlib.default.dependency=false
|
kotlin.stdlib.default.dependency=false
|
||||||
|
@ -30,6 +30,7 @@ import org.springframework.format.support.DefaultFormattingConversionService;
|
|||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||||
import static org.mockito.ArgumentMatchers.any;
|
import static org.mockito.ArgumentMatchers.any;
|
||||||
|
import static org.mockito.ArgumentMatchers.eq;
|
||||||
import static org.mockito.BDDMockito.given;
|
import static org.mockito.BDDMockito.given;
|
||||||
import static org.mockito.BDDMockito.then;
|
import static org.mockito.BDDMockito.then;
|
||||||
import static org.mockito.Mockito.mock;
|
import static org.mockito.Mockito.mock;
|
||||||
@ -55,7 +56,7 @@ class ConversionServiceParameterValueMapperTests {
|
|||||||
void mapParameterWhenConversionServiceFailsShouldThrowParameterMappingException() {
|
void mapParameterWhenConversionServiceFailsShouldThrowParameterMappingException() {
|
||||||
ConversionService conversionService = mock(ConversionService.class);
|
ConversionService conversionService = mock(ConversionService.class);
|
||||||
RuntimeException error = new RuntimeException();
|
RuntimeException error = new RuntimeException();
|
||||||
given(conversionService.convert(any(), any())).willThrow(error);
|
given(conversionService.convert(any(Object.class), eq(Integer.class))).willThrow(error);
|
||||||
ConversionServiceParameterValueMapper mapper = new ConversionServiceParameterValueMapper(conversionService);
|
ConversionServiceParameterValueMapper mapper = new ConversionServiceParameterValueMapper(conversionService);
|
||||||
assertThatExceptionOfType(ParameterMappingException.class)
|
assertThatExceptionOfType(ParameterMappingException.class)
|
||||||
.isThrownBy(() -> mapper.mapParameterValue(new TestOperationParameter(Integer.class), "123"))
|
.isThrownBy(() -> mapper.mapParameterValue(new TestOperationParameter(Integer.class), "123"))
|
||||||
|
Loading…
Reference in New Issue
Block a user