-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathFacilityTest.java
More file actions
67 lines (49 loc) · 1.46 KB
/
FacilityTest.java
File metadata and controls
67 lines (49 loc) · 1.46 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
package de.mh4j.examples.qap.model;
import org.testng.annotations.Test;
import java.util.List;
import java.util.ArrayList;
public class FacilityTest {
@Test
public void testCreate() {
String facilityName1 = "1";
String facilityName2 = "2";
String facilityName3 = "3";
String facilityName4 = "4";
List<Integer> cost_list1 = new ArrayList<Integer>();
List<Integer> cost_list2 = new ArrayList<Integer>();
List<Integer> cost_list3 = new ArrayList<Integer>();
List<Integer> cost_list4 = new ArrayList<Integer>();
cost_list1.add(8);
cost_list1.add(1);
cost_list1.add(5);
cost_list2.add(8);
cost_list2.add(1);
cost_list2.add(1);
cost_list3.add(1);
cost_list3.add(1);
cost_list3.add(2);
cost_list4.add(5);
cost_list4.add(1);
cost_list4.add(2);
List<String> names1 = new ArrayList<String>();
List<String> names2 = new ArrayList<String>();
List<String> names3 = new ArrayList<String>();
List<String> names4 = new ArrayList<String>();
names1.add("2");
names1.add("3");
names1.add("4");
names2.add("1");
names2.add("3");
names2.add("4");
names3.add("1");
names3.add("2");
names3.add("4");
names4.add("1");
names4.add("2");
names4.add("3");
new Facility(facilityName1, cost_list1, names1);
new Facility(facilityName2, cost_list2, names2);
new Facility(facilityName3, cost_list3, names3);
new Facility(facilityName4, cost_list4, names4);
}
}