posted 5 years ago
I have to write Junit test cases for some code. This code uses a database that I don't have. I have to write test cases for methods that call methods from other classes that access the database. Is it possible for me to somehow cause the methods in the other classes to return some dummy values when values from the database are required? Without changing any of the code...