Fix checkstyle violations
This commit is contained in:
@@ -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")));
|
||||
}
|
||||
|
||||
|
||||
@@ -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")));
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user