@isTest
private class lexAccountControllerTest {
    @TestSetup
    static void makeData(){
        List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '病院'];
        if (rectCo.size() == 0) {
            return;
        }
        // テストデータ
        Account company = new Account();
        company.RecordTypeId = rectCo[0].Id;
        company.Name         = 'TestCompany';
        upsert company;
    }
    static testMethod void test1(){
        Account company = [select Id from Account limit 1];
        Test.startTest();
        lexAccountController.init(company.Id);
        lexAccountController.initForNewSolutonProButton(company.Id);
        lexAccountController.initForOTHCreateButton(company.Id);
        lexAccountController.initForRepairContact(company.Id);

        lexAccountController.initForDepartmentCreate(company.Id,'BF');
        lexAccountController.initForDepartmentCreate(company.Id,'ENT');
        lexAccountController.initForDepartmentCreate(company.Id,'GI');
        lexAccountController.initForDepartmentCreate(company.Id,'GS');
        lexAccountController.initForDepartmentCreate(company.Id,'GYN');
        lexAccountController.initForDepartmentCreate(company.Id,'OTH');
        lexAccountController.initForDepartmentCreate(company.Id,'URO');
        lexAccountController.initForDepartmentCreate('','');
        Test.stopTest();
    }
}