Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

More Books

Students also viewed these Databases questions

Question

Hie dount amount

Answered: 1 week ago