@isTest private class Advance_PaymentHandlerTest { static testMethod void testMeth1() { Account ac1 = new Account(Name = 'test1医院',RecordTypeId = '01210000000Qem1',Sales_Shop_Class__c='特約販売店(区域)'); insert ac1; Advance_Payment__c ap1=new Advance_Payment__c(); ap1.Account__c=ac1.Id; ap1.Month_Reason__c='月度特批原因'; ap1.Status__c='草案中'; ap1.RecordTypeId='0121m000000wov3'; insert ap1; ap1.Status__c='已提交'; update ap1; } }