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")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user