Search in sources :

Example 6 with UniformSnapshot

use of io.dropwizard.metrics.UniformSnapshot in project light-4j by networknt.

the class UniformSnapshotTest method calculatesAMaxOfZeroForAnEmptySnapshot.

@Test
public void calculatesAMaxOfZeroForAnEmptySnapshot() throws Exception {
    final Snapshot emptySnapshot = new UniformSnapshot(new long[] {});
    assertThat(emptySnapshot.getMax()).isZero();
}
Also used : Snapshot(io.dropwizard.metrics.Snapshot) UniformSnapshot(io.dropwizard.metrics.UniformSnapshot) UniformSnapshot(io.dropwizard.metrics.UniformSnapshot) Test(org.junit.Test)

Aggregations

Snapshot (io.dropwizard.metrics.Snapshot)6 UniformSnapshot (io.dropwizard.metrics.UniformSnapshot)6 Test (org.junit.Test)6