Question: implement the testPush ( ) , testPop ( ) , and testPeek ( ) test methods. In each method:i a . At the beginning of

implement the testPush(), testPop(), and testPeek() test methods. In each method:i
a. At the beginning of each method print the name of the method being tested then create a
String-bound instance of the LinkedStack. This is the stack that youll be using for your
tests. Create this stack as follows (but you can choose any object reference variable you
like:
LinkedStack testStack = new LinkedStack<>();
b. Now add whatever statements are needed to ensure that the method being tested succeeds
(remember to consider the normal case, all edge cases, and exceptions).
c. Remember that you may have to import the EmptyCollectionExceptions class.
d. Add JUnit assertions to verify the stacks state. Pseudocode suggestions are shown in the
table below.

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!