
@isTest
private class ClsAccountController_Test {
private static testmethod void testStdCntrl(){
Account testAccount = new Account(Name='Test Company Name123');
insert testAccount;
ApexPages.StandardController sc = new ApexPages.StandardController(testAccount);
ClsAccountController accCon = new ClsAccountController(sc);
PageReference pageRef = Page.demo;
pageRef.getParameters().put('id', String.valueOf(testAccount.Id));
Test.setCurrentPage(pageRef);
}
private static testmethod void testCntrl(){
Account testAccount = new Account(Name='Test Company Name123');
insert testAccount;
ClsAccountController accCon = new ClsAccountController();
PageReference pageRef = Page.demo;
pageRef.getParameters().put('id', String.valueOf(testAccount.Id));
Test.setCurrentPage(pageRef);
}
}