Question: What are test cases when it come to JUnit testing. Are they like seperate test file, there are instructions in my hw that have me
What are test cases when it come to JUnit testing. Are they like seperate test file, there are instructions in my hw that have me a bit confused i will post. Im not looking for an answer i just want the instructions to be simplified. Thank you.
Create a package called test and add JUnit test cases to verify the following in your MagicSquare class:
The proper number of input values was provided.
Each of the numbers between 1 and n2 occurs exactly once in the input.
When the numbers are arranged in a matrix,
sum of the rows,
sum of columns,
and sum of diagonals
must be the same value. Create four test cases; one where each of criteria 1, 2, 3 above fail, and one where they all pass.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
