From c9e23fe4ab15bc4b648a553d2172d0a74e1e1a74 Mon Sep 17 00:00:00 2001 From: l <511036524@qq.com> Date: 星期五, 11 三月 2022 17:27:41 +0800 Subject: [PATCH] StateCityUtilTest --- force-app/main/default/classes/StateCityUtilTest.cls | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/force-app/main/default/classes/StateCityUtilTest.cls b/force-app/main/default/classes/StateCityUtilTest.cls new file mode 100644 index 0000000..e885096 --- /dev/null +++ b/force-app/main/default/classes/StateCityUtilTest.cls @@ -0,0 +1,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(''); + } + +} \ No newline at end of file -- Gitblit v1.9.1