The callouts JSON response returns the equipment records that you upsert in Salesforce. If an error occurs during save, a savepoint should be rolled back and a friendly error message should be displayed on the screen. Asking for help, clarification, or responding to other answers. So add assertions into your code to ensure you dont get false positives. If nothing happens, download Xcode and try again. Inventory managers try to balance supply and demand for New Millennium Deliverys products. Set Up Development Org || Apex Specialist Superbadge - YouTube 0:00 / 9:59 Set Up Development Org || Apex Specialist Superbadge Education Org's 286 subscribers Subscribe 74 Share 21K. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. For me, the Product2Extension class was not adding a new Product2 in the Save() method. Mayur, I suppose annotation is very impotant for that step, so make sure that you have : @isTest (seeAllData=false) private class OrderTests{@isTest private static void OrderUpdate_UnitTest(){}} Pay attention @isTest private static void for every test method. Salesforce Trailhead Superbadge: Apex Specialist Solution Challenge 1: Automate record creation STEP 1: Create a new Trailhead Playground Install the unmanaged Package Rename Case to Maintenance Request and Product to Equipment STEP 2: Automate record creation using Apex Trigger Update the trigger MaintenanceRequest: What was the actual cockpit layout and crew of the Mi-24A? Hi Mayur, I have realised if you only have test method 'OrderUpdate_UnitTest' in test class OrderTests with proper declaration and access modifier - You will still get same error as above and to solve it , you need both method in class 'OrderUpdate_UnitTest' and 'OrderExtension_UnitTest' and it will work . Renee created New Millennium Delivery to allow new and emerging chefs to make a name for themselves by giving them a low-cost platform to peddle their food to the public. sign in Are you sure you want to create this branch? jain-sahil/sfdc-advanced-apex-specialist-superbadge - Github Now, you need to fix the business logic such that only successfully activated orders impact inventory levels.
Valley Forge High School, Ford Tesphe Hardship Withdrawal, Articles A