We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59353fc commit f338698Copy full SHA for f338698
1 file changed
src/test/java/org/fairdatateam/fairdatapoint/acceptance/actuator/MetricsTest.java
@@ -54,12 +54,19 @@ class MetricsTest {
54
final String tagName = "http.url";
55
final String uriVisited = "/meta";
56
57
- @Autowired
58
- private MeterRegistry meterRegistry;
+ private final MeterRegistry meterRegistry;
59
60
// https://docs.spring.io/spring-framework/reference/testing/mockmvc/assertj.html
+ private final MockMvcTester mockMvc;
61
+
62
+ /**
63
+ * Constructor
64
+ */
65
@Autowired
- private MockMvcTester mockMvc;
66
+ MetricsTest(MeterRegistry meterRegistry, MockMvcTester mockMvc) {
67
+ this.meterRegistry = meterRegistry;
68
+ this.mockMvc = mockMvc;
69
+ }
70
71
@BeforeEach
72
void clearMeterRegistry() {
0 commit comments