Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA CODE Fully qualified class names are Class 1(code class)(Class name Connect1) edu.jjj.connects.connect1.Connect1.java Class 2 (J Unit Test Class)(Class Name Connect1Test) edu.jjj.connects.connect1.Connect1Test.java Description: Implement the

image text in transcribed

JAVA CODE

Fully qualified class names are

Class 1(code class)(Class name Connect1) edu.jjj.connects.connect1.Connect1.java

Class 2 (J Unit Test Class)(Class Name Connect1Test) edu.jjj.connects.connect1.Connect1Test.java

Description: Implement the following method, which tests whether a two-dimensional list has four consecutive numbers of the same value, either horizontally, vertically, or diagonally public static boolean isConsecutiveFour(int]l] values) Write a series of JUnit test cases that will pass-in a 2-dim array and verify correct results. Your test cases should include both successful executions as well as tests for arrays containing non-consecutive numbers. Remember to take into account "non-square" arrays (Ex. 1x4) 0 10 3 1 6 1 0 1 68 6 0 1 5 6 2 1 8 2 9 6 5 6 11 9 1 1 3614 0 7 3 3 33 4 0 7 0 10 3 1 6 1 0 1 68 6 0 1 5 5 2 1 8 2 9 6 5 6 11 9 1 1 5 6 1 4 0 7 3 5 3 3 40 0 10 3 1 6 1 0 1 68 6 0 1 5 6 2 1 6 2 9 6 5 6 6 1 9 1 1 3 6 1 4 0 7 3 6 3 3 40 0 10 3 1 6 1 0 1 68 6 0 1 9 6 2 1 8 2 9 6 9 6 11 9 1 1 3 91 4 0 7 3 3 3 9 40 Realize that you are simply replicating the actions you would perform manually in an automated way. Essentially, write the code to do what you yourself would do to test the correctness of your code. Your tests do not have to be overly complicated, or extremely robust. Quality test cases (methods) can be written rather quickly once you "get the hang of it". If you find yourself spending more than a few minutes on a test case, please simplify your approach and thought process, you are most likely OVER THINKING the problem. If that doesn't help, please seek help (instructor, tutor, generous genius classmate) Notes: Packaging: Fully qualified class names are listed below

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

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 2 Lncs 8056

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013th Edition

3642401724, 978-3642401725

Students also viewed these Databases questions

Question

4-6 Is there a digital divide? If so, why does it matter?

Answered: 1 week ago