Browse Source

Test metrics endpoint using tag available on Java 9 as well as 8

See gh-10524
pull/10601/head
Andy Wilkinson 8 years ago
parent
commit
1bd44d89d6
  1. 2
      spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/MetricsEndpointWebIntegrationTests.java

2
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/MetricsEndpointWebIntegrationTests.java

@ -67,7 +67,7 @@ public class MetricsEndpointWebIntegrationTests {
@Test @Test
public void selectByTag() { public void selectByTag() {
MetricsEndpointWebIntegrationTests.client.get() MetricsEndpointWebIntegrationTests.client.get()
.uri("/application/metrics/jvm.memory.used?tag=id:PS%20Old%20Gen") .uri("/application/metrics/jvm.memory.used?tag=id:Compressed%20Class%20Space")
.exchange().expectStatus().isOk().expectBody().jsonPath("$.name") .exchange().expectStatus().isOk().expectBody().jsonPath("$.name")
.isEqualTo("jvm.memory.used"); .isEqualTo("jvm.memory.used");
} }

Loading…
Cancel
Save