Issue Details (XML | Word | Printable)

Key: FEST-218
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Alex Ruiz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FEST

Inconsistency in parameter names in assertions

Created: 02/Sep/09 12:31 AM   Updated: 02/Oct/09 01:22 PM   Resolved: 02/Oct/09 01:22 PM
Return to search
Component/s: Assert
Affects Version/s: FEST-Assert 1.1
Fix Version/s: FEST-Assert 1.2

Time Tracking:
Not Specified


 Description  « Hide

From Ted:

I've noticed that we're using different parameter variable names in the assert class methods, sometimes we us "expected", other times "other" and occasionally "obj".

public IntAssert isEqualTo(int expected) {

public IntAssert isNotEqualTo(int value) {

protected final void assertNotEqualTo(T obj) {

How important is it to be consistent here? For asserts that are testing for equality or something similar, "expected" makes sense, but for isNotEqualTo() (for example), "other" is used. Not sure about "obj" (probably should be "other"). For numeric asserts, "value" is used instead of "other". Seems to me we could just use "other".



Alex Ruiz made changes - 02/Oct/09 01:22 PM
Field Original Value New Value
Remaining Estimate 0 minutes [ 0 ]
Original Estimate 0 minutes [ 0 ]
Alex Ruiz made changes - 02/Oct/09 01:22 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]