fix the PartDatabase tests

Closes #3210
// FREEBIE
This commit is contained in:
Rhodey Orbits
2015-05-31 16:08:40 -07:00
committed by Moxie Marlinspike
parent 4d8108f34d
commit 200fc0c599
2 changed files with 21 additions and 10 deletions

View File

@@ -640,5 +640,15 @@ public class PartDatabase extends Database {
public boolean isValid() {
return rowId >= 0 && uniqueId >= 0;
}
@Override
public boolean equals(Object object) {
if (!(object instanceof PartId)){
return false;
}
PartId other = (PartId) object;
return rowId == other.rowId && uniqueId == other.uniqueId;
}
}
}