Show answerHide answer
Correct answer: B, E They must be based on the same GUnit base class.They must have the same @Suite annotation.
Explanation
Answer Option (Which option is correct) B. They must be based on the same GUnit base class.Answer Option (Which option is correct) E. They must have the same @Suite annotation.
Explanation:
The suite example groups test classes sharing a compatible base class and suite annotation. It does not require those tests to be in a single GUnit class. The PDF key D,E is corrected to B,E, and both selected option values are synchronized with the new letters.
Why the other options are incorrect:
A. They must use the assertTrue() function:
assertTrue is only one assertion method. A suite can contain tests using other assertions. Assertion choice does not determine suite membership.
C. They must set TestResultsDir property:
A results directory controls output location. It does not group tests for execution. Suite construction is a separate concern.
D. They must be in the same GUnit class:
Tests in different classes can belong to one suite. The official testing example builds a suite from annotated test classes. Requiring one class defeats that grouping mechanism.
References:
Guidewire-authored PolicyCenter 10.1.2 - GUnit Testing Guide