@@ -10,8 +10,7 @@ public class NonPreemptivePrioritySchedulingTest {
10
10
public void testCalculateAverageWaitingTime () {
11
11
NonPreemptivePriorityScheduling .Process [] processes = {
12
12
new NonPreemptivePriorityScheduling .Process (1 , 0 , 10 , 2 ), // id, arrivalTime, burstTime, priority
13
- new NonPreemptivePriorityScheduling .Process (2 , 0 , 5 , 1 ),
14
- new NonPreemptivePriorityScheduling .Process (3 , 0 , 8 , 3 )
13
+ new NonPreemptivePriorityScheduling .Process (2 , 0 , 5 , 1 ), new NonPreemptivePriorityScheduling .Process (3 , 0 , 8 , 3 )
15
14
};
16
15
NonPreemptivePriorityScheduling .Process [] executionOrder = NonPreemptivePriorityScheduling .scheduleProcesses (processes );
17
16
@@ -25,8 +24,7 @@ public void testCalculateAverageWaitingTime() {
25
24
public void testCalculateAverageTurnaroundTime () {
26
25
NonPreemptivePriorityScheduling .Process [] processes = {
27
26
new NonPreemptivePriorityScheduling .Process (1 , 0 , 10 , 2 ), // id, arrivalTime, burstTime, priority
28
- new NonPreemptivePriorityScheduling .Process (2 , 0 , 5 , 1 ),
29
- new NonPreemptivePriorityScheduling .Process (3 , 0 , 8 , 3 )
27
+ new NonPreemptivePriorityScheduling .Process (2 , 0 , 5 , 1 ), new NonPreemptivePriorityScheduling .Process (3 , 0 , 8 , 3 )
30
28
};
31
29
NonPreemptivePriorityScheduling .Process [] executionOrder = NonPreemptivePriorityScheduling .scheduleProcesses (processes );
32
30
@@ -40,8 +38,7 @@ public void testCalculateAverageTurnaroundTime() {
40
38
public void testStartTimeIsCorrect () {
41
39
NonPreemptivePriorityScheduling .Process [] processes = {
42
40
new NonPreemptivePriorityScheduling .Process (1 , 0 , 10 , 2 ), // id, arrivalTime, burstTime, priority
43
- new NonPreemptivePriorityScheduling .Process (2 , 0 , 5 , 1 ),
44
- new NonPreemptivePriorityScheduling .Process (3 , 0 , 8 , 3 )
41
+ new NonPreemptivePriorityScheduling .Process (2 , 0 , 5 , 1 ), new NonPreemptivePriorityScheduling .Process (3 , 0 , 8 , 3 )
45
42
};
46
43
NonPreemptivePriorityScheduling .Process [] executionOrder = NonPreemptivePriorityScheduling .scheduleProcesses (processes );
47
44
0 commit comments