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

Fixed the behavior of compareTo method of the mock objects #32

Merged
merged 3 commits into from
Jan 8, 2014

Conversation

alberskib
Copy link
Contributor

See https://code.google.com/p/mockito/issues/detail?id=467

Fix compareTo behaviour the same objects

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling a051916 on alberskib:master into 585b06d on mockito:master.

Name of test that checks whether compareTo return 0 for comparison mock with itself is now more intuitive
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling bdaf58a on alberskib:master into 585b06d on mockito:master.

@alberskib
Copy link
Contributor Author

sure, I see two drifferent ways so I use the same as in file in which I add method
I will do it later

@bric3
Copy link
Contributor

bric3 commented Jan 8, 2014

Yeah no problem, we decided that last year that we will use snake case for tests, to enhance readability. However we'd like to upgrade these names per modification, but maybe it could make sens to upgrade the whole test base in a single shot.

We really need to publish a contributing wiki, and port the old doc on googlecode here ;)
For issues it's yet another matter, as we cannot really import them anymore while keeping the old issue number.

Introduce snake case instead of camel case for tests names in ShouldMocksCompareToBeConsistentWithEqualsTest class
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 71154c2 on alberskib:master into 585b06d on mockito:master.

bric3 added a commit that referenced this pull request Jan 8, 2014
[#467] Fix return value of compareTo for the same objects
@bric3 bric3 merged commit c17169c into mockito:master Jan 8, 2014
@bric3
Copy link
Contributor

bric3 commented Jan 8, 2014

Thanks, merged ;)

@mockitoguy mockitoguy changed the title [#467] Fix return value of compareTo for the same objects Fix the behavior of compareTo method of the mock objects Aug 24, 2014
@mockitoguy mockitoguy changed the title Fix the behavior of compareTo method of the mock objects Fixed the behavior of compareTo method of the mock objects Aug 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants