Question: public class identifyShapes public String identifyTetragon ( int a , int b , int c , int d ) throws NotAValidTetragon, InvalidSideException The method throws
public class identifyShapes
public String identifyTetragonint int int int d throws
NotAValidTetragon,
InvalidSideException
The method throws a NotAValidTetragon exception if the supplied values do not fit
into any of the possible three tetragons it is expected to find out, and the function throws
a InvalidSideException if any of the supplied values do not represent a valid value
for a geometric shape.
Types of proper tetragons the function can discriminate are:
Square
Rectangle
Trapezoid
a Identify the equivalence classes for both the input and output domains of the above
function, and come up with a proper diagram similar to the partitioning diagram
expected outputs, ie fill in the below table. You can add rows to the below table as
required. Make sure that each equivalence class you identified above is covered with at
least one test case, and also boundary value analysis is applied for all boundaries
present in your partitions. Hint: Do not neglect the invalid behavior tests!
Week Slide #
Equivalence partitioning
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
