Question: In Eclipse IDE we are trying to use Junit 5 testing to test the following method but we keep getting the following error java.lang.ArrayIndexOutOfBoundsException: Index

In Eclipse IDE we are trying to use Junit5 testing to test the following method but we keep getting the following error java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 0 public void testReadallquestionsfromallCSV(){ LinkedListfiles = new LinkedList<>(); files.add("file1.csv"); files.add("file2.csv"); files.add("file3.csv"); files.add("file4.csv"); files.add("file5.csv"); files.add("file6.csv"); Read read = new Read(); LinkedList>questions = read.readallquestionsfrommultiplecsv(files); LinkedList question : questions; assertEquals(60, questions.size());

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!