@Test public void updateDeleteBytes() { when(this.request.getMethod()).thenReturn(Method.DELETE); when(this.request.getBody()).thenReturn(Bodies.none()); when(this.request.getOperation()).thenReturn(Operation.DELETE); this.stats.update(this.operation); assertAll(Operation.DELETE, 1, 0, 201, 1); }
@Subscribe public void update(final TestState state) { checkNotNull(state); if (state == TestState.STOPPING) { this.running = false; } }
Statistics { @Subscribe public void update(final TestState state) { checkNotNull(state); if (state == TestState.STOPPING) { this.running = false; } } }
Statistics { @Subscribe public void update(final TestState state) { checkNotNull(state); if (state == TestState.STOPPING) { this.running = false; } } @Inject  Statistics(); }
Statistics { @Subscribe public void update(final TestState state) { checkNotNull(state); if (state == TestState.STOPPING) { this.running = false; } } @Inject  Statistics(); @Subscribe void update(final TestState state); @Subscribe void update(final Request request); @Subscribe void update(final Pair<Request, Response> result); void setOperation(final Operation operation); long get(final Operation operation, final Counter counter); long getStatusCode(final Operation operation, final int statusCode); Map<Integer, Long> statusCodes(final Operation operation); @Override String toString(); }
Statistics { @Subscribe public void update(final TestState state) { checkNotNull(state); if (state == TestState.STOPPING) { this.running = false; } } @Inject  Statistics(); @Subscribe void update(final TestState state); @Subscribe void update(final Request request); @Subscribe void update(final Pair<Request, Response> result); void setOperation(final Operation operation); long get(final Operation operation, final Counter counter); long getStatusCode(final Operation operation, final int statusCode); Map<Integer, Long> statusCodes(final Operation operation); @Override String toString();  }