Question: public void TAdd() { //Create theater objects and a movie list instance Theater item1 = new Theater(Star Wars, movie, 4, 12.5f, 3); Theater item2 =

public void TAdd() { //Create theater objects and a movie list instance Theater item1 = new Theater("Star Wars", "movie", 4, 12.5f, 3); Theater item2 = new Theater(item1); item2.setQuantity(3); MovieListArrayList instance = new MovieListArrayList();

// TODO test the add method for the case of adding a new item (item1) into list instance // Be sure that 1)size is increased by 1 and // 2) the first item in the list // is the same as in the reference variable, item1

// TODO test the "combine" feature of the add method // for the case of adding an existing entry, the item2 // into the movie list instance created in previous // code block. The item2 has the same entry name as the item1. // Be sure that 1) size is not changed and 2) quantities are // properly changed in the first item in the list.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!