You need to sign in to do that
Don't have an account?

My test Class.
@isTest public class CaseClassTest { static TestMethod void MyUnitTest(){ Test.startTest(); Pagereference tocase = Page.NewVFPage; Case testCase = new Case(); testCase.Status='Closed'; testCase.Reason='Other'; insert testCase; Test.setCurrentPage(tocase); tocase.getParameters().put('Id',testCase.id); ApexPages.StandardController sc = new ApexPages.standardController(testCase); CaseClass cas = new CaseClass (sc); test.stopTest(); } }
I'm not getting maximum code coverage.. Help me to sort out this
- May I suggest you please check the Test Generator App from App Exchange.this app helps you to generate test class for a controller, trigger &batch.
- https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000EFozgUAD
hope it helps.Please mark it as best answer if the information is informative.
Thanks
Rahul Kumar