@Test public void testSnapshotValues() throws Exception { Assert.assertArrayEquals( "The globalTimer does not contain the expected values: " + Arrays.toString(SAMPLE_LONG_DATA), SAMPLE_LONG_DATA, globalTimer.getSnapshot().getValues()); }
@Test public void testSnapshotValues() throws Exception { Assert.assertArrayEquals( "The histogramInt does not contain the expected values: " + Arrays.toString(SAMPLE_INT_DATA), Arrays.stream(SAMPLE_INT_DATA).asLongStream().toArray(), histogramInt.getSnapshot().getValues()); Assert.assertArrayEquals( "The histogramLong does not contain the expected values: " + Arrays.toString(SAMPLE_LONG_DATA), SAMPLE_LONG_DATA, histogramLong.getSnapshot().getValues()); }