@Test public void build_actionHeaderAreSetAfterGlobalHeaders() { RestAction<Void> action = createActionWithHeaderParams(); factory.buildHeaders(requestBuilder, action, SECURITY_TOKEN); InOrder inOrder = inOrder(requestBuilder); inOrder.verify(requestBuilder).setHeader(eq(KEY_1), anyString()); inOrder.verify(requestBuilder).setHeader(eq(KEY_2), anyString()); inOrder.verify(requestBuilder).setHeader(eq(ACTION_KEY_1), anyString()); inOrder.verify(requestBuilder).setHeader(eq(ACTION_KEY_2), anyString()); }
@Override public void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken) { List<HttpParameter> parameters = buildParameters(action, securityToken); addHeaders(requestBuilder, parameters); }
DefaultHeaderFactory implements HeaderFactory { @Override public void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken) { List<HttpParameter> parameters = buildParameters(action, securityToken); addHeaders(requestBuilder, parameters); } }
DefaultHeaderFactory implements HeaderFactory { @Override public void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken) { List<HttpParameter> parameters = buildParameters(action, securityToken); addHeaders(requestBuilder, parameters); } @Inject  DefaultHeaderFactory(
            @GlobalHeaderParams RestParameterBindings globalParams,
            @XsrfHeaderName String securityHeaderName,
            @RestApplicationPath Provider<String> applicationPathProvider); }
DefaultHeaderFactory implements HeaderFactory { @Override public void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken) { List<HttpParameter> parameters = buildParameters(action, securityToken); addHeaders(requestBuilder, parameters); } @Inject  DefaultHeaderFactory(
            @GlobalHeaderParams RestParameterBindings globalParams,
            @XsrfHeaderName String securityHeaderName,
            @RestApplicationPath Provider<String> applicationPathProvider); @Override void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken); }
DefaultHeaderFactory implements HeaderFactory { @Override public void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken) { List<HttpParameter> parameters = buildParameters(action, securityToken); addHeaders(requestBuilder, parameters); } @Inject  DefaultHeaderFactory(
            @GlobalHeaderParams RestParameterBindings globalParams,
            @XsrfHeaderName String securityHeaderName,
            @RestApplicationPath Provider<String> applicationPathProvider); @Override void buildHeaders(RequestBuilder requestBuilder, RestAction<?> action, String securityToken);  }