Skip to content

Commit

Permalink
fix test for split link header if the string is too long
Browse files Browse the repository at this point in the history
  • Loading branch information
jmetzner committed Oct 7, 2010
1 parent 61aa7df commit 2910f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/com/basho/riak/client/TestRiakObject.java
Expand Up @@ -389,7 +389,7 @@ public Object answer(InvocationOnMock invocation) throws Throwable {
impl.getLinks().add(link);
impl.writeToHttpMethod(mockHttpMethod);

verify(mockHttpMethod).setRequestHeader(eq(Constants.HDR_LINK), contains("</riak/b/l>; riaktag=\"t\""));
verify(mockHttpMethod).addRequestHeader(eq(Constants.HDR_LINK), contains("</riak/b/l>; riaktag=\"t\""));
}

@Test public void write_to_http_method_doesnt_sets_link_header_if_no_links() {
Expand Down

0 comments on commit 2910f6f

Please sign in to comment.