I just happen to implement a method void followlink(obj page,obj link)
which simply adds page and link to queue. I have unsuccessfully tried to test this kind of method.
All I want is to test that in the queue contains page and link received from followlink method. My test class already extends TestCase.So what would be the best way to test such a method?