| | |
| | | @isTest |
| | | private class NFM702ControllerTest { |
| | | |
| | | @TestSetup |
| | | static void makeData(){ |
| | | TestDataUtility.CreatePIPolicyConfiguration('NFM702'); |
| | | } |
| | | public Class GeDatas { |
| | | public NFMUtil.Monitoring Monitoring; |
| | | public GeData[] GeData; |
| | |
| | | GeData.TelNo = '13810000000'; |
| | | GeData.HcpNo = '123456'; |
| | | GeData.IsActive = true; |
| | | GeData.UpdateStatus = '1'; |
| | | GeData.UpdateStatus = 'U'; |
| | | |
| | | NFMUtil.Monitoring Monitoring = new NFMUtil.Monitoring(); |
| | | Monitoring.Tag = GeDatas.Monitoring.Tag; |
| | |
| | | Monitoring.Text = ''; |
| | | BatchIF_Log__c rowData = NFMUtil.saveRowData(Monitoring, 'NFM702', GeDatas.GeData); |
| | | |
| | | List<Contact> conList = TestDataUtility.CreateContacts(3); |
| | | List<String> geList = new List<String>(); |
| | | geList.add('C000033002'); |
| | | if(conList.size()>0){ |
| | | for(Contact con : conList){ |
| | | geList.add(con.Id); |
| | | } |
| | | } |
| | | Test.setMock(HttpCalloutMock.class, new TestDataUtility.CreatePIHelperHttpMock()); |
| | | NFM702Controller.callout(rowData.id, geList); |
| | | NFM702Controller.ManualExecute(rowData.id); |
| | | |
| | | } |
| | | } |