Question: JUNIT In the file Sort Test. java (below) write unit tests for one of the sorting algorithms (use either: Shotgun Sort, QuickSort Algorithm or BubbleSort)

JUNIT

In the file SortTest.java (below) write unit tests for one of the sorting algorithms (use either: Shotgun Sort, QuickSort Algorithm or BubbleSort) *Write the 3 black box tests* using any of the following: Non functional technique or Boundary value analysis or Equivalence partition technique. or Error Guess

Only test the Sort Method.

Below is File SortTest

import junit.framework.*;

public class SortTest extends TestCase

{

public SortTest( String name )

{

super( name );

}

// this is run before every test

protected void setUp()

{

}

// this is run after every test

protected void tearDown()

{

}

// This guy adds *all* of the tests of this class to the test suite

// (uses reflection)

public static Test suite()

{

return new TestSuite( SortTest.class );

}

// Your tests should start with the word test

public void test_this_is_a_sample_passing_test()

{

// Arrange

// Act

// Assert

}

}

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!