@isTest private class RepairAgainAnHandlerTest { static testMethod void testmethod_1(){ RepairAgainAn__c ra = new RepairAgainAn__c(); ra.Name = 'TestRa'; ra.Dectect_Picture1__c = ''; ra.Dectect_Picture2__c = ''; ra.OSH_Dectect_Picture1__c = ''; ra.OSH_Dectect_Picture2__c = ''; ra.OSH_Dectect_Picture3__c = ''; ra.OSH_Dectect_Picture4__c = ''; insert ra; ra = [select Dectect_Picture1_URL__c, Dectect_Picture2_URL__c, OSH_Dectect_Picture1_URL__c, OSH_Dectect_Picture2_URL__c, OSH_Dectect_Picture3_URL__c, OSH_Dectect_Picture4_URL__c from RepairAgainAn__c where Id = :ra.Id]; System.assertNotEquals(null, ra.Dectect_Picture1_URL__c); System.assertNotEquals(null, ra.Dectect_Picture2_URL__c); System.assertNotEquals(null, ra.OSH_Dectect_Picture1_URL__c); System.assertNotEquals(null, ra.OSH_Dectect_Picture2_URL__c); System.assertNotEquals(null, ra.OSH_Dectect_Picture3_URL__c); System.assertNotEquals(null, ra.OSH_Dectect_Picture4_URL__c); } }