Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4 . The following exercise is intended to encourage you to think of testing in a more rigorous way than you may be used to

4. The following exercise is intended to encourage you to think of testing in a more rigorous way than you may be used to. The exercise also hints at the strong relationship between specification clarity, faults, and test cases1.
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 of the two argument Vectors.
b. Upon reflection, you may discover a variety of defects and ambiguities in the given assignment. In other words, ample opportunities for faults exist. Describe as many possible faults as you can. (Note: Vector is a Java Collection class. If you are using another language, interpret Vector as a list.)
c. Create a set of test cases that you think would have a reasonable chance of revealing the faults you identified above. Document a rationale for each test in

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Systems A 360-degree Approach

Authors: Jawwad ShamsiMuhammad Khojaye

1st Edition

0429531575, 9780429531576

More Books

Students also viewed these Databases questions

Question

What important flaw do both the IRR and PI share? Explain.

Answered: 1 week ago

Question

13-6 How will MIS help my career?

Answered: 1 week ago