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

Câu 13: Certified Platform Developer II

A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?

Nội dung câu hỏi

A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?

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. Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
  2. B. Move the prerequisite reference data setup to a @testSetup method in the test class. — đáp án hiện tại
  3. C. Move the prerequisite reference data setup to a static method in the test class and call that from each test method.
  4. D. Move the prerequisite reference data setup to the constructor for the test class.

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ề