| | |
| | | |
| | | PageReference ref = new PageReference('/apex/ConsumDefaultSelectController?pt_recid=' + ca.Id); |
| | | Test.setCurrentPage(ref); |
| | | Test.startTest(); // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add |
| | | ConsumDefaultSelectController controller = new ConsumDefaultSelectController(); |
| | | CreateRelationListPagingCmpCtrl cmp = new CreateRelationListPagingCmpCtrl(); |
| | | cmp.pageController = controller; |
| | |
| | | controller.searchOpp(); |
| | | System.assertEquals(1, controller.viewlist.size()); |
| | | |
| | | Test.startTest(); |
| | | // Test.startTest();// 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 |
| | | controller.setShipment_request(); |
| | | Test.stopTest(); |
| | | |
| | |
| | | |
| | | PageReference ref = new PageReference('/apex/ConsumDefaultSelectController?pt_recid=' + ca.Id); |
| | | Test.setCurrentPage(ref); |
| | | Test.startTest();// 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add |
| | | ConsumDefaultSelectController controller = new ConsumDefaultSelectController(); |
| | | CreateRelationListPagingCmpCtrl cmp = new CreateRelationListPagingCmpCtrl(); |
| | | cmp.pageController = controller; |
| | | controller.myComponentController.init(); |
| | | |
| | | controller.init(); |
| | | controller.searchOpp(); |
| | | System.assertEquals(1, controller.viewlist.size()); |
| | | |
| | | Test.startTest(); |
| | | // Test.startTest();// 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 |
| | | controller.copyNum(); |
| | | controller.save(); |
| | | Test.stopTest(); |