Skip to content
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

Not extend Junit Assert classes in Tests. #1316 #1331

Merged
merged 2 commits into from
Jul 3, 2016

Conversation

smadasu
Copy link
Contributor

@smadasu smadasu commented Jul 2, 2016

I have cleaned up all the Junit tests extending from Assert class. Please review

@@ -110,7 +115,10 @@ public void multiBulkReply() {
expected.add(SafeEncoder.encode("Hello"));
expected.add(SafeEncoder.encode("World"));

assertEquals(expected, response);
assertEquals(expected.size(), response.size());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can apply assertByteArrayListEquals this case, right?

Copy link
Contributor Author

@smadasu smadasu Jul 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Thats right. But I want to use it without extending. Let me look into it.

@HeartSaVioR
Copy link
Contributor

Thanks for the work. LGTM. Extending Assert was old fashion and this pull request corrects it.

@marcosnils Please review and merge. Thanks!

@marcosnils
Copy link
Contributor

👍 LGTM!. thx for the contribution @smadasu

@marcosnils marcosnils merged commit 351c98d into redis:master Jul 3, 2016
marcosnils pushed a commit that referenced this pull request Jul 3, 2016
* Not extend Junit Assert classes in Tests. #1316

Conflicts:
	src/test/java/redis/clients/jedis/tests/ModuleTest.java
	src/test/java/redis/clients/jedis/tests/PipeliningTest.java
	src/test/java/redis/clients/jedis/tests/commands/AllKindOfValuesCommandsTest.java
	src/test/java/redis/clients/jedis/tests/commands/BinaryValuesCommandsTest.java
	src/test/java/redis/clients/jedis/tests/commands/HashesCommandsTest.java
	src/test/java/redis/clients/jedis/tests/commands/ScriptingCommandsTest.java
	src/test/java/redis/clients/jedis/tests/commands/SetCommandsTest.java
marcosnils pushed a commit that referenced this pull request Jul 3, 2016
* Not extend Junit Assert classes in Tests. #1316

Conflicts:
	src/test/java/redis/clients/jedis/tests/ModuleTest.java
	src/test/java/redis/clients/jedis/tests/PipeliningTest.java
	src/test/java/redis/clients/jedis/tests/commands/AllKindOfValuesCommandsTest.java
	src/test/java/redis/clients/jedis/tests/commands/BinaryValuesCommandsTest.java
	src/test/java/redis/clients/jedis/tests/commands/HashesCommandsTest.java
	src/test/java/redis/clients/jedis/tests/commands/ScriptingCommandsTest.java
	src/test/java/redis/clients/jedis/tests/commands/SetCommandsTest.java
@marcosnils
Copy link
Contributor

Applied to 2.8 and 2.9 respectively. Thx again @smadasu

@smadasu
Copy link
Contributor Author

smadasu commented Jul 3, 2016

Fantastic! Glad I could help :)

@smadasu smadasu deleted the Junit_Enhancement branch July 3, 2016 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants