@isTest private class RepairAgainAnPDFControllerTest { static testMethod void testMethod_01(){ RepairAgainAn__c ra = new RepairAgainAn__c(); ra.Name = 'TestRa'; insert ra; ApexPages.currentPage().getParameters().put('id', ra.Id); RepairAgainAnPDFController controller = new RepairAgainAnPDFController(); controller.init(); } }