diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/HttpMessageConvertersTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/HttpMessageConvertersTests.java index bfe1347f56..405e4158eb 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/HttpMessageConvertersTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/HttpMessageConvertersTests.java @@ -98,7 +98,6 @@ public class HttpMessageConvertersTests { HttpMessageConverter converter2 = mock(HttpMessageConverter.class); HttpMessageConverters converters = new HttpMessageConverters(converter1, converter2); - assertTrue(converters.getConverters().contains(converter1)); assertEquals(converter1, converters.getConverters().get(0)); assertEquals(converter2, converters.getConverters().get(1)); } @@ -111,7 +110,6 @@ public class HttpMessageConvertersTests { converter2).getConverters(); List> partConverters = extractFormPartConverters( converters); - assertTrue(partConverters.contains(converter1)); assertEquals(converter1, partConverters.get(0)); assertEquals(converter2, partConverters.get(1)); }