Question: I have this method and I am traying to do some data path testing , J unit test , this is how i was trying

 I have this method and I am traying to do some

I have this method and I am traying to do some data path testing , J unit test ,

this is how i was trying to do it but it keeps giving me an issue becuase is a void method insted of int

public void test() { int [] arr = {3,5,7,8,2,1}; int size = 6; int [] expected = {1,2,3,5,7,8}; assertArrayEquals(expected, bubbleSortEfficient.bubbleSortEfficientt(arr, size))

}

void bubbleSortEfficient(int A[], int size) int temp; bool exchanged true; for (int i = 0; i = i + 1 ; j-) if (Aljl

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 Databases Questions!