@@ -8,8 +8,7 @@ public class NonPreemptivePrioritySchedulingTest {
8
8
9
9
@ Test
10
10
public void testCalculateAverageWaitingTime () {
11
- NonPreemptivePriorityScheduling .Process [] processes = {
12
- new NonPreemptivePriorityScheduling .Process (1 , 0 , 10 , 2 ), // id, arrivalTime, burstTime, priority
11
+ NonPreemptivePriorityScheduling .Process [] processes = {new NonPreemptivePriorityScheduling .Process (1 , 0 , 10 , 2 ), // id, arrivalTime, burstTime, priority
13
12
new NonPreemptivePriorityScheduling .Process (2 , 0 , 5 , 1 ), new NonPreemptivePriorityScheduling .Process (3 , 0 , 8 , 3 )
14
13
};
15
14
NonPreemptivePriorityScheduling .Process [] executionOrder = NonPreemptivePriorityScheduling .scheduleProcesses (processes );
@@ -22,8 +21,7 @@ public void testCalculateAverageWaitingTime() {
22
21
23
22
@ Test
24
23
public void testCalculateAverageTurnaroundTime () {
25
- NonPreemptivePriorityScheduling .Process [] processes = {
26
- new NonPreemptivePriorityScheduling .Process (1 , 0 , 10 , 2 ), // id, arrivalTime, burstTime, priority
24
+ NonPreemptivePriorityScheduling .Process [] processes = {new NonPreemptivePriorityScheduling .Process (1 , 0 , 10 , 2 ), // id, arrivalTime, burstTime, priority
27
25
new NonPreemptivePriorityScheduling .Process (2 , 0 , 5 , 1 ), new NonPreemptivePriorityScheduling .Process (3 , 0 , 8 , 3 )
28
26
};
29
27
NonPreemptivePriorityScheduling .Process [] executionOrder = NonPreemptivePriorityScheduling .scheduleProcesses (processes );
@@ -36,8 +34,7 @@ public void testCalculateAverageTurnaroundTime() {
36
34
37
35
@ Test
38
36
public void testStartTimeIsCorrect () {
39
- NonPreemptivePriorityScheduling .Process [] processes = {
40
- new NonPreemptivePriorityScheduling .Process (1 , 0 , 10 , 2 ), // id, arrivalTime, burstTime, priority
37
+ NonPreemptivePriorityScheduling .Process [] processes = {new NonPreemptivePriorityScheduling .Process (1 , 0 , 10 , 2 ), // id, arrivalTime, burstTime, priority
41
38
new NonPreemptivePriorityScheduling .Process (2 , 0 , 5 , 1 ), new NonPreemptivePriorityScheduling .Process (3 , 0 , 8 , 3 )
42
39
};
43
40
NonPreemptivePriorityScheduling .Process [] executionOrder = NonPreemptivePriorityScheduling .scheduleProcesses (processes );
0 commit comments