file based data provider
<p>here is my scenario. In my Junit tests, in many places, I need to provide user name, description, url, invalid url etc. So I hard coded those values. It is not good to hard code everywhere. So I want to move those values to a centralized place (a file). And I have some data provider say DP. I can call DP.getUserName(), DP.getUrl() etc. at places where need those values. Also, I want to have a pool of different user names, urls, invalid urls etc. When I call getUrl, it will randomly pick up on from the pool.</p>

<p>What I can think of is to use java.util.Properties to load propertis from a file and each time I call, I just randomly return one entry.</p>

<p>Any better approach to achieve this goal? thanks.</p>
