You need to sign in to do that
Don't have an account?
udayarangareddy mekala
Controller1
Hi
how to pass the test data for the IF conditions
try{
if(val.contains('null')){
val=null;
}
}catch(NullPointerException E){
}
if(sr!=null&&val!=null){
system.debug('***before executing doSearch***');
doSearch();
}
For above block please guide me how to pass the data depend on If condition.
Thanks&Regards
Rangareddy
how to pass the test data for the IF conditions
try{
if(val.contains('null')){
val=null;
}
}catch(NullPointerException E){
}
if(sr!=null&&val!=null){
system.debug('***before executing doSearch***');
doSearch();
}
For above block please guide me how to pass the data depend on If condition.
Thanks&Regards
Rangareddy
As Himanshu mentioned it will be good if you can post complite class so it will be easy to solve the problem