-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added Missing Client Tests. #127
Added Missing Client Tests. #127
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.
This is hard to review because you've deleted-created the test files and it's hard to know what you've added.
I'd suggest a separate PR to rename the test files.
And another PR to add tests to the renamed test file.
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.
Please move common tests to one place and use parametrized test to avoid code duplicating
Some tests remain non common though
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.
Hmm, they had kept all these tests in one single class is breaking them up worth it?
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.
We can do better!
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.
Done!
3412cf0
to
46963a5
Compare
java/integTest/src/test/java/glide/cluster/ClusterClientTests.java
Outdated
Show resolved
Hide resolved
java/integTest/src/test/java/glide/cluster/ClusterClientTests.java
Outdated
Show resolved
Hide resolved
RedisClusterClient.CreateClient(commonClusterClientConfig().build()).get(); | ||
|
||
String key = "foo"; | ||
String value = "שלום hello 汉字"; |
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.
We may need to use unicode codes to store that string to keep source files ASCII
\x<code>
and so on
https://www.ssec.wisc.edu/~tomw/java/unicode.html
|
||
@Test | ||
@SneakyThrows | ||
public void close_client_throws_ExecutionException_with_ClosingException_cause() { |
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.
Please move to exception hadling tests
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.
The tests in error handling are not parameterized which would require another PR change. Also, how would we go about initializing the clients if we close them once would we have to change it so it initializes the clients before each test?
java/integTest/src/test/java/glide/standalone/StandaloneClientTests.java
Outdated
Show resolved
Hide resolved
java/integTest/src/test/java/glide/cluster/ClusterClientTests.java
Outdated
Show resolved
Hide resolved
8c69197
to
0793cfb
Compare
java/integTest/src/test/java/glide/cluster/ClusterClientTests.java
Outdated
Show resolved
Hide resolved
java/integTest/src/test/java/glide/cluster/ClusterClientTests.java
Outdated
Show resolved
Hide resolved
java/integTest/src/test/java/glide/standalone/StandaloneClientTests.java
Outdated
Show resolved
Hide resolved
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.
Don't have full context, but seems fine to me.
8334d28
into
java/integ_SanH_add_SharedClientTests
* Java: Added Missing Client Tests. (#127) * Minor update. * Refactored to unicode litterals.
* Java: Added Missing Client Tests. (#127) * Minor update. * Refactored to unicode litterals.
No description provided.