Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c469c41

Browse files
committed
Merge branch '2.5.x' into 2.6.x
2 parents 01c19ef + 04ce0e6 commit c469c41

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/annotation/EndpointDiscovererTests.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -267,8 +267,7 @@ private void hasTestEndpoint(AnnotationConfigApplicationContext context) {
267267
Map<EndpointId, TestExposableEndpoint> endpoints = mapEndpoints(discoverer.getEndpoints());
268268
assertThat(endpoints).containsOnlyKeys(EndpointId.of("test"));
269269
Map<Method, TestOperation> operations = mapOperations(endpoints.get(EndpointId.of("test")));
270-
assertThat(operations).hasSize(4);
271-
assertThat(operations).containsKeys();
270+
assertThat(operations).containsOnlyKeys(testEndpointMethods());
272271
}
273272

274273
private Method[] testEndpointMethods() {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /