-
Notifications
You must be signed in to change notification settings - Fork 22
Improve tests #37
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
Improve tests #37
Conversation
|
I think that's it.. hope I haven't missed anything but if I did we can do more improvements later. |
|
I also added more invalid cases of |
dbu
left a comment
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.
i like the changes to assertSame and additional type checks.
i am not sure i fully get what the getClone method is supposed to do - i think it would be cleaner to explicitly clone the original request/response in 1-2 places where we test that indeed the original object is not altered, instead of having a clone method and that many checks? the getCone method name is also very generic and not explaining what it is for.
The abstract definition of
Yes I can clone the message per test case... but the places I counted are 5 not 1-2 😄 .. I have no disagreement about this.. I will make the changes...
I was pretty sure about this comment.. I have the same feeling as you... Since I will remove it and do the clone per test case then no need to think of a name.. if you change your mind and keep it I vote for |
|
okay, cool! when i said 1-2 places i was thinking if we need the clone in all places we currently use it. if there is a specific reason to test that in each of the places, i am all for it, but we should not test the same thing multiple times. |
dbu
left a comment
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.
i find it more readable this way with the clone in the tests. thanks!
What's in this PR?
To Do
assertEqualwith a clone.