Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose that we have a class with some method that takes four input values, each representing one side of a proper tetragon. The function returns
Suppose that we have a class with some method that takes four input values, each
representing one side of a proper tetragon. The function returns the information a
String telling whether the given values represent the side lengths of a Square, a
Rectangle, or a Trapezoid.
public class identifyshapes
public String identifyTetragonint int int int d throws
Not:AValidTetragon,
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:
a Identify the equiralence classes for both the input and output domains of the above
function, and come up with a proper diagram similar to the partitioning diagram
arailable on slide # of lecture notes for week that depict those equiralence
classes.
b Derelop a set of test cases, ie test suite for the method for which a Jara signature is
given above. You are NOT expected to write the Jara source code for the
implementation of the above given method, but only to list the test inputs, and
expected outputs, ie fill in the below table. You can add rows to the below table as
required. Make sure that each equiralence class pou identified above is corered with at
least one test case, and also boundary ralue analysis is applied for all boundaries
present in your partitions. Hint: Do not neglect the imvalid behavior tests!
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