試験CRT-450 トピック3 問題189 スレッド

Salesforce CRT-450のリアル試験問題集
問題 #: 189
トピック #: 3
How should a developer write unit tests for a private method in an Apex class?

おすすめの解答:D 解答を投票する

The@TestVisibleannotation allows private methods or variables to be accessed in test classes. This ensures that the private method can be adequately tested without changing its access modifier.
Reference:Testing Apex Code
Below is the formatted response for the provided question, adhering to the specified format and requirements.
The question falls under the Salesforce Platform and Declarative Features topic, as it involves securing SOQL queries against injection vulnerabilities in the context of Visualforce, which is a key concept in the Salesforce Platform Developer I certification. The answer is based on official Salesforce Platform Developer I documentation, with a comprehensive explanation and references to relevant Salesforce documentation. Since the question asks for two correct answers, the response will identify both and explain why they are safe, as well as why the others are not.

Arimori 2026-08-26 06:06:15

コメント

正解:
?」こちらは投票コメントになっております。普通のコメントに切り替えます。
ニックネーム: 送信 キャンセル
投票コメントをあげるごとに、選択した解答の投票数を1つ増やすことができます。

他人の解答コメントを賛成するのも、その解答に一票を入れることになります。したがって、すでに同じ意見の投票コメントが存在する場合、新規コメントをする代わりに賛成することもできます。

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡