Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions