`mockMeterRegistry#find(String)` doesn't seem to return null (#1113)

pull/1110/head^2
Manabu Matsuzaki 7 years ago committed by Brett Wooldridge
parent 3a739210ce
commit 4852678a7b

@ -25,14 +25,14 @@ public class MicrometerMetricsTrackerTest {
@Test
public void close() throws Exception {
Assert.assertNotNull(mockMeterRegistry.find("Wait"));
Assert.assertNotNull(mockMeterRegistry.find("Usage"));
Assert.assertNotNull(mockMeterRegistry.find("ConnectionCreation"));
Assert.assertNotNull(mockMeterRegistry.find("ConnectionTimeoutRate"));
Assert.assertNotNull(mockMeterRegistry.find("TotalConnections"));
Assert.assertNotNull(mockMeterRegistry.find("IdleConnections"));
Assert.assertNotNull(mockMeterRegistry.find("ActiveConnections"));
Assert.assertNotNull(mockMeterRegistry.find("PendingConnections"));
Assert.assertNotNull(mockMeterRegistry.find("hikaricp.connections.acquire").tag("pool", "mypool").timer());
Assert.assertNotNull(mockMeterRegistry.find("hikaricp.connections.usage").tag("pool", "mypool").timer());
Assert.assertNotNull(mockMeterRegistry.find("hikaricp.connections.creation").tag("pool", "mypool").timer());
Assert.assertNotNull(mockMeterRegistry.find("hikaricp.connections.timeout").tag("pool", "mypool").counter());
Assert.assertNotNull(mockMeterRegistry.find("hikaricp.connections").tag("pool", "mypool").gauge());
Assert.assertNotNull(mockMeterRegistry.find("hikaricp.connections.idle").tag("pool", "mypool").gauge());
Assert.assertNotNull(mockMeterRegistry.find("hikaricp.connections.active").tag("pool", "mypool").gauge());
Assert.assertNotNull(mockMeterRegistry.find("hikaricp.connections.pending").tag("pool", "mypool").gauge());
testee.close();
}

Loading…
Cancel
Save