Start building against Spring Framework 6.1.0-M3 snapshots

See gh-36443
pull/36422/head
Stephane Nicoll 1 year ago
parent 71406977c2
commit 289d458a60

@ -6,7 +6,7 @@ org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
kotlinVersion=1.8.22
nativeBuildToolsVersion=0.9.23
springFrameworkVersion=6.1.0-M2
springFrameworkVersion=6.1.0-SNAPSHOT
tomcatVersion=10.1.11
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.assertThatExceptionOfType;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.BDDMockito.given;
import static org.mockito.BDDMockito.then;
import static org.mockito.Mockito.mock;
@ -55,7 +56,7 @@ class ConversionServiceParameterValueMapperTests {
void mapParameterWhenConversionServiceFailsShouldThrowParameterMappingException() {
ConversionService conversionService = mock(ConversionService.class);
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);
assertThatExceptionOfType(ParameterMappingException.class)
.isThrownBy(() -> mapper.mapParameterValue(new TestOperationParameter(Integer.class), "123"))

Loading…
Cancel
Save