List of usage examples for org.springframework.boot.jdbc.metadata DataSourcePoolMetadata getUsage
Float getUsage();
From source file:org.springframework.boot.jdbc.metadata.CommonsDbcp2DataSourcePoolMetadataTests.java
@Test public void getPoolUsageWithUnlimitedPool() { DataSourcePoolMetadata unlimitedDataSource = createDataSourceMetadata(0, -1); assertThat(unlimitedDataSource.getUsage()).isEqualTo(Float.valueOf(-1F)); }