You need to sign in to do that
Don't have an account?
div nine
Can any body help me writing test class for this code
public class apex {
public account acc {get;set;}
public apex(){
account acc = [select name from account limit 1];
}
}
public account acc {get;set;}
public apex(){
account acc = [select name from account limit 1];
}
}
Raj Vakati
div nine
Thanks!!
div nine
But this code has only 66% code coverage:
Raj Vakati
Raj Vakati
I got 100 % with below code
div nine
I also got it thank you