Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Fixing UnmodifiableBuffer equality bug #80

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rwdalpe
Copy link

@rwdalpe rwdalpe commented Mar 8, 2017

Two commits, one contains a couple renames (see details below) so recommended to review them separately to see more meaningful diffs.

UnmodifiableBuffer previously compared its own records object
against itself rather than against the records object of the
other buffer. This meant that equals would return true even
if two buffers contained different records.

Added unit tests to verify that UnmodifiableBuffer compares both
its internal IBuffer and its list of records.

Additionally, several test files did not match maven's conventions (should be *Test but was *Tests) and so were not run when executing mvn test, so I renamed them.

rwdalpe added 2 commits March 8, 2017 15:36
UnmodifiableBuffer previously compared its own `records` object
against itself rather than against the `records` object of the
other buffer. This meant that `equals` would return true even
if two buffers contained different records.

Added unit tests to verify that UnmodifiableBuffer compares both
its internal `IBuffer` and its list of records.
Maven currently autoscans for test files which match the pattern

`*Test` but not `*Tests`, which means that running `mvn test`
did not actually execute the tests in these files previously.

Now they are executed by maven automatically.
@rwdalpe
Copy link
Author

rwdalpe commented Mar 20, 2017

Filed issue #81 to associate with this PR as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants