commit
						6cb9af11e8
					
				|  | @ -30,6 +30,7 @@ import io.micrometer.core.instrument.binder.logging.LogbackMetrics; | ||||||
| import io.micrometer.core.instrument.simple.SimpleConfig; | import io.micrometer.core.instrument.simple.SimpleConfig; | ||||||
| import io.micrometer.core.instrument.simple.SimpleMeterRegistry; | import io.micrometer.core.instrument.simple.SimpleMeterRegistry; | ||||||
| import jakarta.servlet.DispatcherType; | import jakarta.servlet.DispatcherType; | ||||||
|  | import org.junit.jupiter.api.BeforeEach; | ||||||
| import org.junit.jupiter.api.Test; | import org.junit.jupiter.api.Test; | ||||||
| 
 | 
 | ||||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||||
|  | @ -99,6 +100,11 @@ class MetricsIntegrationTests { | ||||||
| 	@Autowired | 	@Autowired | ||||||
| 	private MeterRegistry registry; | 	private MeterRegistry registry; | ||||||
| 
 | 
 | ||||||
|  | 	@BeforeEach | ||||||
|  | 	void setUp() { | ||||||
|  | 		this.registry.clear(); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 	@SuppressWarnings("unchecked") | 	@SuppressWarnings("unchecked") | ||||||
| 	@Test | 	@Test | ||||||
| 	void restTemplateIsInstrumented() { | 	void restTemplateIsInstrumented() { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue