Share

SUnit

Tracker: Bugs

5 TestResource class>>isAvailable always returns true? - ID: 2783223
Last Update: Tracker Item Submitted ( nobody )

Hi...

I reviewed the implementation of TestResource class>>isAvailable in several
smalltalks (VAST 6, VAST 8, Visual Works 7.5 and Pharo) and all have the
following implementation:

TestResource class>>isAvailable
^self current notNil and: [self current isAvailable]

I think this always initialize the resource... because current is
implemented via lazy initialization.... "self current notNil" always
returns true...

Maybe the implementation should be:

isAvailable
^current notNil and: [current isAvailable]

???


Nobody/Anonymous ( nobody ) - 2009-04-28 21:35

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.