pull/24946/head
Andy Wilkinson 4 years ago
parent 0669f5604d
commit 4e918b141b

@ -38,10 +38,10 @@ import static org.assertj.core.api.Assertions.assertThat;
* *
* @author Andy Wilkinson * @author Andy Wilkinson
*/ */
public class MappingsEndpointAutoConfigurationTests { class MappingsEndpointAutoConfigurationTests {
@Test @Test
public void whenEndpointIsUnavailableThenEndpointAndDescriptionProvidersAreNotCreated() { void whenEndpointIsUnavailableThenEndpointAndDescriptionProvidersAreNotCreated() {
new WebApplicationContextRunner() new WebApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(MappingsEndpointAutoConfiguration.class, .withConfiguration(AutoConfigurations.of(MappingsEndpointAutoConfiguration.class,
JacksonAutoConfiguration.class, HttpMessageConvertersAutoConfiguration.class, JacksonAutoConfiguration.class, HttpMessageConvertersAutoConfiguration.class,
@ -56,7 +56,7 @@ public class MappingsEndpointAutoConfigurationTests {
} }
@Test @Test
public void whenEndpointIsAvailableThenEndpointAndDescriptionProvidersAreCreated() { void whenEndpointIsAvailableThenEndpointAndDescriptionProvidersAreCreated() {
new WebApplicationContextRunner() new WebApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(MappingsEndpointAutoConfiguration.class, .withConfiguration(AutoConfigurations.of(MappingsEndpointAutoConfiguration.class,
JacksonAutoConfiguration.class, HttpMessageConvertersAutoConfiguration.class, JacksonAutoConfiguration.class, HttpMessageConvertersAutoConfiguration.class,

Loading…
Cancel
Save