CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

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.

  1. A. The deployment fails because no assertions were made in the test method.
  2. B. The deployment passes because both classes and the trigger were included in the deployment.
  3. C. The deployment passes because the Apex code has required (>75%) code coverage.
  4. 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.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề