@isTest private class AccountQualifyAlertControllerTest { @isTest static void test_method_one() { // Implement test code List rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '病院']; if (rectCo.size() == 0) { throw new ControllerUtil.myException('not found 病院 recodetype'); } // insert Account hospital = new Account(); hospital.RecordTypeId = rectCo[0].Id; hospital.Name = 'Katsu テスト'; hospital.Quolified_Approve_Status__c = 'Draft'; hospital.If_Need_Quolified__c = true; insert hospital; PageReference ref = new PageReference('/apex/AccountQualifyAlert?id=' + hospital.id); Test.setCurrentPage(ref); AccountQualifyAlertController controller = new AccountQualifyAlertController(); controller.init(); } @isTest static void test_method_two() { // Implement test code } }