1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| @isTest
| private class UpdateAccountBatchTest {
| @isTest static void test_method_one() {
| List<RecordType> rectHp = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '病院'];
| Account myAccount1 =
| new Account(name='testaccount001',
| RecordTypeId = rectHp[0].Id,
| OwnerId = userinfo.getUserId(),
| FSE_Main__c = userinfo.getUserId());
| insert myAccount1;
| System.Test.startTest();
| Id execBTId = Database.executeBatch(new UpdateAccountBatch(), 1);
| System.Test.stopTest();
|
| }
|
| }
|
|