dcsimg
how to test hashtable?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Julie_S
Posted On:   Thursday, July 21, 2005 10:57 AM


hi all,
i am new to junit..so plz kindly help out from this..
How to test Hashtables which are returned from an method????

how do u compare an objects???

how do u check for null values..??

can i use assert methods for all these,,if yes ..give me an example..



regards
julie

Re: how to test hashtable?

Posted By:   Stephen_Smith  
Posted On:   Monday, July 25, 2005 07:11 AM

You can perform a number of different assertions on a Map implementation such as Hashtable. Simply work your way through the Map API and implement assertions where necessary, e.g. assertFalse(myHashtable.isEmpty()). You can also obtain an Iterator on a Hashtable, and then check individual keys and values.
About | Sitemap | Contact