use of com.artipie.http.rs.RsWithStatus in project artipie by artipie.
the class ResponseMetricsSliceTest method shouldReportNotFoundResponse.
@Test
public void shouldReportNotFoundResponse() {
this.send(RqMethod.HEAD, new RsWithStatus(RsStatus.NOT_FOUND));
this.send(RqMethod.HEAD, new RsWithStatus(RsStatus.NOT_FOUND));
MatcherAssert.assertThat(this.metrics.counter("head.error").value(), new IsEqual<>(2L));
}
Aggregations