@Test public void requestTimeResolverCalled() { Date d = new Date(); when(requestTimeResolver.resolveRequestTime(request)).thenReturn(d); requestedTimeResolver.resolve(httpCommand, null, builder); assertEquals(d, builder.getRequestTime()); }
@Override public void resolve(HttpCommand httpCommand, Ignore ignore, DehydratedExecutionContextBuilder builder) { Date requestTime = requestTimeResolver.resolveRequestTime(httpCommand.getRequest()); builder.setRequestTime(requestTime); }
HttpRequestedTimeResolver extends SingleComponentResolver<HttpCommand, Ignore> { @Override public void resolve(HttpCommand httpCommand, Ignore ignore, DehydratedExecutionContextBuilder builder) { Date requestTime = requestTimeResolver.resolveRequestTime(httpCommand.getRequest()); builder.setRequestTime(requestTime); } }
HttpRequestedTimeResolver extends SingleComponentResolver<HttpCommand, Ignore> { @Override public void resolve(HttpCommand httpCommand, Ignore ignore, DehydratedExecutionContextBuilder builder) { Date requestTime = requestTimeResolver.resolveRequestTime(httpCommand.getRequest()); builder.setRequestTime(requestTime); } HttpRequestedTimeResolver(RequestTimeResolver<HttpServletRequest> requestTimeResolver); }
HttpRequestedTimeResolver extends SingleComponentResolver<HttpCommand, Ignore> { @Override public void resolve(HttpCommand httpCommand, Ignore ignore, DehydratedExecutionContextBuilder builder) { Date requestTime = requestTimeResolver.resolveRequestTime(httpCommand.getRequest()); builder.setRequestTime(requestTime); } HttpRequestedTimeResolver(RequestTimeResolver<HttpServletRequest> requestTimeResolver); @Override void resolve(HttpCommand httpCommand, Ignore ignore, DehydratedExecutionContextBuilder builder); }
HttpRequestedTimeResolver extends SingleComponentResolver<HttpCommand, Ignore> { @Override public void resolve(HttpCommand httpCommand, Ignore ignore, DehydratedExecutionContextBuilder builder) { Date requestTime = requestTimeResolver.resolveRequestTime(httpCommand.getRequest()); builder.setRequestTime(requestTime); } HttpRequestedTimeResolver(RequestTimeResolver<HttpServletRequest> requestTimeResolver); @Override void resolve(HttpCommand httpCommand, Ignore ignore, DehydratedExecutionContextBuilder builder);  }