A possible JUnit test for this code is the following public class MyTests

A possible junit test for this code is the following

  • Ryerson University
  • COE 618
  • Test Prep
  • Pakistani
  • 4
  • 100% (1) 1 out of 1 people found this document helpful

This preview shows page 2 - 4 out of 4 pages.

Q3. The questions on this page use the Set data type shown below. class Set { Set (); creator/producer// effects: constructs a new, empty set Set (Set s); creator/producer// effects: constructs a new set containing the same elements as this set void removeAll (Set s); mutator// effects: removes from this set every element equal to an element of s boolean isEmpty (); observer// effects: returns true iff this set is empty
Image of page 2