李彤
2022-03-31 985edf54edeaac1b70a0b00c5fa975ab3add78b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@isTest
private class StateCityUtilTest {
    @isTest 
    static void TestMethod1(){
        Address_Level__c al = new Address_Level__c();
        al.name = '北京市';
        insert al;
 
        Address_Level2__c al2  = new Address_Level2__c();
        al2.name = '北京';
        insert al2;
 
        StateCityUtil con = new StateCityUtil();
        StateCityUtil.get_state('北京市');
        StateCityUtil.get_city('北京');
 
        StateCityUtil.get_state('');
        StateCityUtil.get_city('');
    }
 
}