Hi,
I am writing
Unit test to test the DAO operation. For that I need to set the data source . I am doing that by using
ds.setDriverClassName("someClassName")
ds.setUsername("userName")
ds.setPassword("userPassWord")
ds.setUrl("urlOftheDataBse")
dao.setDataSource(ds);
Is there any way that we can set the data source directly from database.properties file (specially the URL). So, whenever there is any change in the URL of the database, it doesn't required to update manually in each test file.
Thanks.