Question
Create a JUnit test for the NewMain class. package package4; import java.util.* ; import java.io.* ; public class NewMain { /* *@return boolean *@param data
Create a JUnit test for the NewMain class.
package package4;
import java.util.* ; import java.io.* ; public class NewMain {
/* *@return boolean *@param data */ public boolean checkPalindrome(LinkedList MyVector Class package package4 ; //import import java.util.ArrayList ; public class MyVector { private ArrayList //copy constructor public MyVector(MyVector vec) { this.vector = new ArrayList() ; for (int i = 0 ; i 1. Creation of project 4. Package should include the driver and driver test classes /10 2. Used the MyVector class from projecti /10 3. Read input from a file generating MyVector objects......... /10 4. Used a LinkedList to store the MyVector objects ....... /10 5. Used two LinkedList iterators to traverse the LinkedList both directions ....... /10 6. Sequence compilation and execution Class compiles without errors b. Correct answers on test data ..... a. /10 /15 7. JUnit tests Provides at least one test for the method for recognizing a palindrome. a. /10 1. Creation of project 4. Package should include the driver and driver test classes /10 2. Used the MyVector class from projecti /10 3. Read input from a file generating MyVector objects......... /10 4. Used a LinkedList to store the MyVector objects ....... /10 5. Used two LinkedList iterators to traverse the LinkedList both directions ....... /10 6. Sequence compilation and execution Class compiles without errors b. Correct answers on test data ..... a. /10 /15 7. JUnit tests Provides at least one test for the method for recognizing a palindrome. a. /10
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