Below is my code and I am writting Junit test case for method perform. I want method getList to return dummy values as DB is not available. Please suggest how I can do the same using JMockit.
class BaseClass {
public List<> getList() {
return DataBase.getList();
}
}
class ChildClass extends BaseClass {
public boolean perform(String temp) {
boolean bool=true;
List list = getList();
for(String str:list){
if(str.equals(temp);
bool=false;
break;
}
return bool;
}
}