//liwentao 20230825 //InventoryTemperatureHumidityController 测试类 @isTest private class InventoryTemperatureHumidityCtlTest { static testMethod void testMethod1() { System.runAs(new User(Id = Userinfo.getUserId())) { Test.startTest(); InventoryTemperatureHumidityController sc = new InventoryTemperatureHumidityController(); sc.changeZone(); sc.init(); sc.gettemperatureHumidityZoneOps(); sc.save(); Test.stopTest(); } } }