nerdexam
Salesforce

CRT-450 · Question #230

A developer is asked to write helper methods that create test data for unit tests. What should be changed in the Testvtils class so that its methods are only usable by unit test methods?

The correct answer is B. Add @IsTest above line 03. See the full explanation below for the reasoning.

Question

A developer is asked to write helper methods that create test data for unit tests. What should be changed in the Testvtils class so that its methods are only usable by unit test methods?

Exhibit

CRT-450 question #230 exhibit

Options

  • AChange public to private on line 01.
  • BAdd @IsTest above line 03,
  • CAdd @IsTest above line 01.
  • DRemove static from line 03.

How the community answered

(34 responses)
  • A
    15% (5)
  • B
    74% (25)
  • C
    9% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice