-
Notifications
You must be signed in to change notification settings - Fork 203
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
#533 - mock socket refactoring #539
Conversation
@exper0 Thanks, let me find someone who can review this pull request |
@longtimeago it's yours,please review |
@@ -99,7 +99,15 @@ | |||
*/ | |||
@Test | |||
public void handlesSocket() throws IOException { | |||
final Socket socket = createMockSocket(); | |||
final Socket socket = createMockSocket( |
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.
@exper0 I didn't get what is the point of moving this code back from createMockSocket()
method?
Do you understand issue you are trying to solve?
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.
@longtimeago absolutely no. I asked about it in #533 but decided it will be faster to create PR with anything. Could you please explain what should I do here?
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.
@exper0 from my point of view, the issue is pointless, unless you could get rid of mocking and introduce fake Stream as it was suggested by Yegor
@exper0 any updates here? |
@longtimeago not yet - I had to set 'away' mode a bit earlier. I will be able to regurn to the task next week |
@longtimeago please take a look at latest commit |
@exper0 nice, thanks! |
@rultor merge |
@longtimeago Thanks for your request. @yegor256 Please confirm this. |
@yegor256 ping |
@exper0 this is pointless... by mocking a JDK socket you're basically removing 90% of functionality from our classes. what is there left to test? just a few lines of code that makes calls to JDK sockets? they work, we can see that. but will they work with a real socket? we don't know, since you mock it out. we should use a real socket, not a fake one. |
@yegor256 hum ... looks like we didn't get your previous comment #533 (comment) |
@yegor256 This PR stuck is my tasks list. Could you please check? |
@elenavolokhova please, review this issue for QA compliance, as per par.24 |
@longtimeago
Only one issue was found during review. |
@elenavolokhova I confirm |
@davvd Quality is acceptable here. |
@elenavolokhova thanks for the QA review, we'll work better next time |
@longtimeago added 10 mins to @elenavolokhova, for QA review, payment code is |
@longtimeago everything is good now |
@yegor256 yep, thanks! |
#533 - mock socket refactoring