-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Daniel/test sets #6
Daniel/test sets #6
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testGSet needs to try and remove an item and fail.
After checking it updated, do the same as testSet by removing user2, and having that fail as we'd expect.
Exception test for when removing an item from a GSet added. |
src/test/java/com/basho/riak/client/api/commands/itest/ITestDatatype.java
Show resolved
Hide resolved
SetUpdate suRemoveItem = new SetUpdate().remove("user2"); | ||
UpdateSet updateRemove = new UpdateSet.Builder(location, suRemoveItem).withContext(ctx).build(); | ||
client.execute(updateRemove); | ||
} catch (Exception e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to IllegalArgumentException and let others through.
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Java is not my strong suit but everything looks ok to me as far as I can see.
Description
Added tests for Sets and GSets.