Fix checkstyle violations

This commit is contained in:
Phillip Webb
2019-06-07 13:11:46 -07:00
parent 4c21dc1c31
commit cde4f0d688
7 changed files with 27 additions and 26 deletions

View File

@@ -122,9 +122,8 @@ class ControllerEndpointDiscovererTests {
@Test
void getEndpointWhenEndpointHasOperationsShouldThrowException() {
this.contextRunner.withUserConfiguration(TestControllerWithOperation.class)
.run(assertDiscoverer((discoverer) -> assertThatIllegalStateException()
.isThrownBy(discoverer::getEndpoints)
this.contextRunner.withUserConfiguration(TestControllerWithOperation.class).run(
assertDiscoverer((discoverer) -> assertThatIllegalStateException().isThrownBy(discoverer::getEndpoints)
.withMessageContaining("ControllerEndpoints must not declare operations")));
}

View File

@@ -105,9 +105,8 @@ class ServletEndpointDiscovererTests {
@Test
void getEndpointWhenEndpointHasOperationsShouldThrowException() {
this.contextRunner.withUserConfiguration(TestServletEndpointWithOperation.class)
.run(assertDiscoverer((discoverer) -> assertThatIllegalStateException()
.isThrownBy(discoverer::getEndpoints)
this.contextRunner.withUserConfiguration(TestServletEndpointWithOperation.class).run(
assertDiscoverer((discoverer) -> assertThatIllegalStateException().isThrownBy(discoverer::getEndpoints)
.withMessageContaining("ServletEndpoints must not declare operations")));
}

View File

@@ -16,7 +16,6 @@
package org.springframework.boot.autoconfigure.packagestest.one;
import org.springframework.boot.autoconfigure.AutoConfigurationPackagesTests;
import org.springframework.boot.autoconfigure.AutoConfigurationPackagesTests.TestRegistrar;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;