You need to sign in to do that
Don't have an account?
Meenakshi1212
how to write test class
Hi All,
I ma new to salesforce so i don't know how to write test class.
can you please tell em how to write test class for below apex class
public class AHAccountWrapper{
public AHAccountWrapper(Boolean radioButton, Account account){
this.radioButton = radioButton;
this.account = account;
}
public Boolean radioButton{get;set;}
public Account account{get;set;}
}
But my suggestion to you is to read Testing Apex
Meenakshi,
Please try below code:-
@isTest
private class AHAccountWrapperTest {
static void myUnitTest() {
Account acc = new Account();
AHAccountWrapper w = new AHAccountWrapper(true, acc);
}
}