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
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