@Test public void testSeverityErrorCount() { catcher.error(ErrorCode.medium(10, "hello world")); assertThat(registry.counter(this.config.getPrefix() + ".error-severity-MEDIUM-count") .getCount(), equalTo(0l)); }
@Test public void testSeverityErrorCount() { catcher.error(ErrorCode.medium(10, "hello world")); assertThat(registry.counter(this.config.getPrefix() + ".error-severity-MEDIUM-count") .getCount(), equalTo(1l)); }
@Test public void testErrorCount() { catcher.error(ErrorCode.medium(10, "hello world")); assertThat(registry.counter(this.config.getPrefix() + ".error-MEDIUM-10-count") .getCount(), equalTo(1l)); }
@Test public void testErrorCount() { catcher.error(ErrorCode.medium(10, "hello world")); assertThat(registry.counter(this.config.getPrefix() + ".error-MEDIUM-10-count") .getCount(), equalTo(0l)); }
@Test public void testErrorMeter() { catcher.error(ErrorCode.medium(10, "hello world")); assertThat(registry.meter(this.config.getPrefix() + ".error-MEDIUM-10") .getMeanRate(), greaterThan(0.00)); }
@Test public void testErrorSeverityMeter() { catcher.error(ErrorCode.medium(10, "hello world")); assertThat(registry.meter(this.config.getPrefix() + ".error-severity-MEDIUM") .getMeanRate(), equalTo(0.00)); }
@Test public void testErrorSeverityMeter() { catcher.error(ErrorCode.medium(10, "hello world")); assertThat(registry.meter(this.config.getPrefix() + ".error-severity-MEDIUM") .getMeanRate(), greaterThan(0.00)); }
@Test public void testErrorMeter() { catcher.error(ErrorCode.medium(10, "hello world")); assertThat(registry.meter(this.config.getPrefix() + ".error-MEDIUM-10") .getMeanRate(), equalTo(0.00)); }