Adapt test to include MappingJackson2CborHttpMessageConverter

See spring-projects/spring-framework#32428

See gh-41177
This commit is contained in:
Stéphane Nicoll 2024-04-03 10:16:43 +02:00 committed by Andy Wilkinson
parent 74a2144a37
commit fe4c34d226

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2023 the original author or authors. * Copyright 2012-2024 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -146,7 +146,7 @@ class HttpMessageConvertersTests {
} }
assertThat(converterClasses).containsExactly(ByteArrayHttpMessageConverter.class, assertThat(converterClasses).containsExactly(ByteArrayHttpMessageConverter.class,
StringHttpMessageConverter.class, ResourceHttpMessageConverter.class, StringHttpMessageConverter.class, ResourceHttpMessageConverter.class,
MappingJackson2HttpMessageConverter.class); MappingJackson2HttpMessageConverter.class, MappingJackson2CborHttpMessageConverter.class);
} }
private List<HttpMessageConverter<?>> extractFormPartConverters(List<HttpMessageConverter<?>> converters) { private List<HttpMessageConverter<?>> extractFormPartConverters(List<HttpMessageConverter<?>> converters) {