Merge branch '2.0.x' into 2.1.x
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -482,7 +482,8 @@ public class EndpointDiscovererTests {
|
||||
|
||||
}
|
||||
|
||||
@EndpointExtension(endpoint = SpecializedTestEndpoint.class, filter = SpecializedEndpointFilter.class)
|
||||
@EndpointExtension(endpoint = SpecializedTestEndpoint.class,
|
||||
filter = SpecializedEndpointFilter.class)
|
||||
public static class SpecializedExtension {
|
||||
|
||||
@ReadOperation
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -470,8 +470,8 @@ public class JmxEndpointDiscovererTests {
|
||||
|
||||
@ReadOperation
|
||||
@ManagedOperation(description = "Get something based on a timeUnit")
|
||||
@ManagedOperationParameters({
|
||||
@ManagedOperationParameter(name = "unitMs", description = "Number of milliseconds") })
|
||||
@ManagedOperationParameters({ @ManagedOperationParameter(name = "unitMs",
|
||||
description = "Number of milliseconds") })
|
||||
public String getSomething(Long timeUnit) {
|
||||
return null;
|
||||
}
|
||||
@@ -487,8 +487,8 @@ public class JmxEndpointDiscovererTests {
|
||||
|
||||
@DeleteOperation
|
||||
@ManagedOperation(description = "Delete something based on a timeUnit")
|
||||
@ManagedOperationParameters({
|
||||
@ManagedOperationParameter(name = "unitMs", description = "Number of milliseconds") })
|
||||
@ManagedOperationParameters({ @ManagedOperationParameter(name = "unitMs",
|
||||
description = "Number of milliseconds") })
|
||||
public void deleteSomething(Long timeUnit) {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -162,8 +162,8 @@ public class LongTaskTimingHandlerInterceptorTests {
|
||||
private CyclicBarrier callableBarrier;
|
||||
|
||||
@Timed
|
||||
@Timed(value = "my.long.request", extraTags = { "region",
|
||||
"test" }, longTask = true)
|
||||
@Timed(value = "my.long.request", extraTags = { "region", "test" },
|
||||
longTask = true)
|
||||
@GetMapping("/callable/{id}")
|
||||
public Callable<String> asyncCallable(@PathVariable Long id) throws Exception {
|
||||
this.callableBarrier.await();
|
||||
|
||||
@@ -396,8 +396,8 @@ public class WebMvcMetricsFilterTests {
|
||||
}
|
||||
|
||||
@Timed
|
||||
@Timed(value = "my.long.request", extraTags = { "region",
|
||||
"test" }, longTask = true)
|
||||
@Timed(value = "my.long.request", extraTags = { "region", "test" },
|
||||
longTask = true)
|
||||
@GetMapping("/callable/{id}")
|
||||
public Callable<String> asyncCallable(@PathVariable Long id) throws Exception {
|
||||
this.callableBarrier.await();
|
||||
|
||||
Reference in New Issue
Block a user