Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Stringbound 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started