This repository was archived by the owner on Mar 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunUnitTests.java
More file actions
132 lines (131 loc) · 3.66 KB
/
RunUnitTests.java
File metadata and controls
132 lines (131 loc) · 3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
* Class to run all or aggregate unit tests
*/
public class RunUnitTests
{
//run aggregate unit tests
public static void RunAggregateUnitTests(int whatTest)
{
switch(whatTest)
{
case 1:
{
System.out.println("Running Selection Sort Unit Tests...");
TestSelectionSort.TestSelSort();
} break;
case 2:
{
System.out.println("Running Insertion Sort Unit Tests...");
TestInsertionSort.TestInsSort();
} break;
case 3:
{
System.out.println("Running Shell Sort Unit Tests...");
TestShellSort.TestShSort();
} break;
case 4:
{
System.out.println("Running Merge Sort Unit Tests...");
TestMergeSort.TestMSort();
} break;
case 5:
{
System.out.println("Running Quick Sort Unit Tests...");
TestQuickSort.TestQSort();
} break;
case 6:
{
System.out.println("Running Merge Sort Hybrid Unit Tests...");
TestMergeSortHybrid.TestMSortHybrid();
} break;
case 7:
{
System.out.println("Running QuickSort Hybrid Unit Tests...");
TestQuickSortHybrid.TestQSortHybrid();
} break;
case 8:
{
System.out.println("Running Gap Sequence Generator Unit Tests...");
TestGapSeqGenerator.TestGapSeqGen();
} break;
case 9:
{
System.out.println("Running Array Generator Unit Tests...");
TestArrayGenerator.TestArrGen();
} break;
case 10:
{
System.out.println("Running Main Sorting Method Unit Tests...");
TestDoSort.TestSorting();
} break;
case 11:
{
System.out.println("Running Sorter Unit Tests...");
TestSorter.TestSortMenuSorter();
} break;
case 12:
{
System.out.println("Running Experiment Unit Tests...");
TestExperiment.TestExperiments();
} break;
case 13:
{
System.out.println("Running Dummy Run Unit Test...");
TestDummyRuns.TestDummyRun();
} break;
case 14:
{
System.out.println("Running Choose Sorting Algorithm Unit Test...");
TestChooseAlgorithm.TestChooseSortingAlgorithm();
} break;
default: break;
}
System.out.println();
}
//run all unit tests
public static void RunAllUnitTests()
{
System.out.println("Running Selection Sort Unit Tests...");
TestSelectionSort.TestSelSort();
System.out.println();
System.out.println("Running Insertion Sort Unit Tests...");
TestInsertionSort.TestInsSort();
System.out.println();
System.out.println("Running Shell Sort Unit Tests...");
TestShellSort.TestShSort();
System.out.println();
System.out.println("Running Merge Sort Unit Tests...");
TestMergeSort.TestMSort();
System.out.println();
System.out.println("Running QuickSort Unit Tests...");
TestQuickSort.TestQSort();
System.out.println();
System.out.println("Running Merge Sort Hybrid Unit Tests...");
TestMergeSortHybrid.TestMSortHybrid();
System.out.println();
System.out.println("Running QuickSort Hybrid Unit Tests...");
TestQuickSortHybrid.TestQSortHybrid();
System.out.println();
System.out.println("Running Gap Sequence Generator Unit Tests...");
TestGapSeqGenerator.TestGapSeqGen();
System.out.println();
System.out.println("Running Array Generator Unit Tests...");
TestArrayGenerator.TestArrGen();
System.out.println();
System.out.println("Running Main Sorting Method Unit Tests...");
TestDoSort.TestSorting();
System.out.println();
System.out.println("Running Sorter Unit Tests...");
TestSorter.TestSortMenuSorter();
System.out.println();
System.out.println("Running Experiment Unit Tests...");
TestExperiment.TestExperiments();
System.out.println();
System.out.println("Running Dummy Run Unit Test...");
TestDummyRuns.TestDummyRun();
System.out.println();
System.out.println("Running Choose Sorting Algorithm Unit Test...");
TestChooseAlgorithm.TestChooseSortingAlgorithm();
System.out.println();
}
}