Which statement is accurate regarding creating unit tests in Apex? - ProProfs Discuss
Topics
Products
Follow Us:

Which statement is accurate regarding creating unit tests in Apex?



A. Increased test coverage requires large test classes with many lines ofcode in one method
B. System Assert statements that do not increase code coveragecontribute important feedback in unit
C. Unit tests with multiple methods result in all methods failing every timeone method fails
D. Triggers do not require any unit tests in order to deploy them fromsandbox to production

This question is part of Exam ng Pabebe Girls
Asked by Catherine halcombe, Last updated: May 15, 2020

+ Answer
Request

2 Answers

M. Kennedy

M. Kennedy, Web Content Writer, Denver

Answered Jun 28, 2018

APEX test is a type of test that checks whether a code is working or not. This is not similar to the usual "Unit" test wherein people would have to answer questions regarding one while book unit. The correct statement out of all the given statements above is B.

System Assert Statements that do not increase code coverage contribute important feedback in unit. Take note that when doing an APEX unit test, there is no need to create a class instance anymore. The unit test can be done immediately. People do not want to waste time just to know if a code is working or not especially if there are other codes that will be checked.

 

John Smith

John Smith

Answered Jun 08, 2017

System Assert statements that do not increase code coverage contribute important feedback in unit
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.