Câu 112: Salesforce Certified Platform Developer I
A developer created this Apex trigger that calls MyClass.myStaticMethod: trigger myTrigger on Contact(before insert){ MyClass.myStaticMethod(trigger.new, trigger.oldMap); }The developer creates a test class with a test method that calls MyClass.myStaticMethod, resulting in 81% overall code coverage. What happens when…
Nội dung câu hỏi
A developer created this Apex trigger that calls MyClass.myStaticMethod: trigger myTrigger on Contact(before insert){ MyClass.myStaticMethod(trigger.new, trigger.oldMap); }The developer creates a test class with a test method that calls MyClass.myStaticMethod, resulting in 81% overall code coverage. What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. The deployment fails because no assertions were made in the test method.
- B. The deployment passes because both classes and the trigger were included in the deployment.
- C. The deployment passes because the Apex code has required (>75%) code coverage.
- D. The deployment fails because the Apex trigger has no code coverage. — đáp án hiện tại
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.