The following exercise is intended to encourage you to think oftesting in a
more rigorous way than you may be used to. The exercise also hintsat the
strong relationship between specification clarity, faults, and testcases.
Paul Ammann , Jeff Offutt book called Introduction to SoftwareTesting
(a) Write a Java method with the signature
public static Vector union (Vector a, Vector b)
The method should return a Vector of objects that are in either ofthe
two argument Vectors.
(b) Upon reflection, you may discover a variety of defects andambiguities
in the given assignment. In other words, ample opportunities forfaults
exist. Identify as many possible faults as you can. (Note: Vectoris a
PayPal Gateway not configured
PayPal Gateway not configured