@@ -40,206 +40,206 @@ public static void generateData() throws Exception {
40
40
41
41
@ Test
42
42
public void personTest () {
43
- testIdUniqueness (dir +"/person_0_0.csv" , 0 );
44
- testStringLength (dir +"/person_0_0.csv" , 1 , 40 );
45
- testStringLength (dir +"/person_0_0.csv" , 2 , 40 );
46
- testStringLength (dir +"/person_0_0.csv" , 3 , 40 );
47
- testStringLength (dir +"/person_0_0.csv" , 6 , 40 );
48
- testStringLength (dir +"/person_0_0.csv" , 7 , 40 );
43
+ testIdUniqueness (dir +"/dynamic/ person_0_0.csv" , 0 );
44
+ testStringLength (dir +"/dynamic/ person_0_0.csv" , 1 , 40 );
45
+ testStringLength (dir +"/dynamic/ person_0_0.csv" , 2 , 40 );
46
+ testStringLength (dir +"/dynamic/ person_0_0.csv" , 3 , 40 );
47
+ testStringLength (dir +"/dynamic/ person_0_0.csv" , 6 , 40 );
48
+ testStringLength (dir +"/dynamic/ person_0_0.csv" , 7 , 40 );
49
49
assertTrue ("Everything ok" ,true );
50
50
}
51
51
52
52
@ Test
53
53
public void postTest () {
54
- testIdUniqueness (dir +"/post_0_0.csv" , 0 );
55
- testLongBetween (dir +"/post_0_0.csv" ,7 ,0 ,2001 );
56
- testStringLength (dir +"/post_0_0.csv" , 1 , 40 );
57
- testStringLength (dir +"/post_0_0.csv" , 3 , 40 );
58
- testStringLength (dir +"/post_0_0.csv" , 4 , 40 );
59
- testStringLength (dir +"/post_0_0.csv" , 5 , 40 );
54
+ testIdUniqueness (dir +"/dynamic/ post_0_0.csv" , 0 );
55
+ testLongBetween (dir +"/dynamic/ post_0_0.csv" ,7 ,0 ,2001 );
56
+ testStringLength (dir +"/dynamic/ post_0_0.csv" , 1 , 40 );
57
+ testStringLength (dir +"/dynamic/ post_0_0.csv" , 3 , 40 );
58
+ testStringLength (dir +"/dynamic/ post_0_0.csv" , 4 , 40 );
59
+ testStringLength (dir +"/dynamic/ post_0_0.csv" , 5 , 40 );
60
60
assertTrue ("Everything ok" ,true );
61
61
}
62
62
63
63
@ Test
64
64
public void forumTest () {
65
- testIdUniqueness (dir +"/forum_0_0.csv" , 0 );
66
- testStringLength (dir +"/forum_0_0.csv" , 1 , 256 );
65
+ testIdUniqueness (dir +"/dynamic/ forum_0_0.csv" , 0 );
66
+ testStringLength (dir +"/dynamic/ forum_0_0.csv" , 1 , 256 );
67
67
assertTrue ("Everything ok" ,true );
68
68
}
69
69
70
70
@ Test
71
71
public void commentTest () {
72
- testIdUniqueness (dir +"/comment_0_0.csv" , 0 );
73
- testLongBetween (dir +"/comment_0_0.csv" ,5 ,0 ,2001 );
74
- testStringLength (dir +"/comment_0_0.csv" , 2 , 40 );
75
- testStringLength (dir +"/comment_0_0.csv" , 3 , 40 );
72
+ testIdUniqueness (dir +"/dynamic/ comment_0_0.csv" , 0 );
73
+ testLongBetween (dir +"/dynamic/ comment_0_0.csv" ,5 ,0 ,2001 );
74
+ testStringLength (dir +"/dynamic/ comment_0_0.csv" , 2 , 40 );
75
+ testStringLength (dir +"/dynamic/ comment_0_0.csv" , 3 , 40 );
76
76
assertTrue ("Everything ok" ,true );
77
77
}
78
78
79
79
@ Test
80
80
public void organisationTest () {
81
- testIdUniqueness (dir +"/organisation_0_0.csv" , 0 );
82
- testStringLength (dir +"/organisation_0_0.csv" , 2 , 256 );
81
+ testIdUniqueness (dir +"/static/ organisation_0_0.csv" , 0 );
82
+ testStringLength (dir +"/static/ organisation_0_0.csv" , 2 , 256 );
83
83
assertTrue ("Everything ok" ,true );
84
84
}
85
85
86
86
@ Test
87
87
public void placeTest () {
88
- testIdUniqueness (dir +"/place_0_0.csv" , 0 );
89
- testStringLength (dir +"/place_0_0.csv" , 1 , 256 );
88
+ testIdUniqueness (dir +"/static/ place_0_0.csv" , 0 );
89
+ testStringLength (dir +"/static/ place_0_0.csv" , 1 , 256 );
90
90
assertTrue ("Everything ok" ,true );
91
91
}
92
92
93
93
@ Test
94
94
public void tagTest () {
95
- testIdUniqueness (dir +"/tag_0_0.csv" , 0 );
96
- testStringLength (dir +"/tag_0_0.csv" , 1 , 256 );
95
+ testIdUniqueness (dir +"/static/ tag_0_0.csv" , 0 );
96
+ testStringLength (dir +"/static/ tag_0_0.csv" , 1 , 256 );
97
97
assertTrue ("Everything ok" ,true );
98
98
}
99
99
100
100
@ Test
101
101
public void tagclassTest () {
102
- testIdUniqueness (dir +"/tagclass_0_0.csv" , 0 );
103
- testStringLength (dir +"/tagclass_0_0.csv" , 1 , 256 );
102
+ testIdUniqueness (dir +"/static/ tagclass_0_0.csv" , 0 );
103
+ testStringLength (dir +"/static/ tagclass_0_0.csv" , 1 , 256 );
104
104
assertTrue ("Everything ok" ,true );
105
105
}
106
106
107
107
@ Test
108
108
public void personKnowsPersonTest () {
109
- testPairUniquenessPlusExistance (dir +"/person_knows_person_0_0.csv" ,0 ,1 ,dir +"/person_0_0.csv" ,0 );
109
+ testPairUniquenessPlusExistance (dir +"/dynamic/ person_knows_person_0_0.csv" ,0 ,1 ,dir +"/dynamic /person_0_0.csv" ,0 );
110
110
assertTrue ("Everything ok" ,true );
111
111
}
112
112
113
113
@ Test
114
114
public void organisationIsLocatedInPlaceTest () {
115
- testPairUniquenessPlusExistance (dir +"/organisation_isLocatedIn_place_0_0.csv" ,0 ,1 ,dir +"/organisation_0_0.csv" ,0 ,dir +"/place_0_0.csv" ,0 );
115
+ testPairUniquenessPlusExistance (dir +"/static/ organisation_isLocatedIn_place_0_0.csv" ,0 ,1 ,dir +"/static/ organisation_0_0.csv" ,0 ,dir +"/static /place_0_0.csv" ,0 );
116
116
assertTrue ("Everything ok" ,true );
117
117
}
118
118
119
119
@ Test
120
120
public void placeIsPartOfPlaceTest () {
121
- testPairUniquenessPlusExistance (dir +"/place_isPartOf_place_0_0.csv" ,0 ,1 ,dir +"/place_0_0.csv" ,0 );
121
+ testPairUniquenessPlusExistance (dir +"/static/ place_isPartOf_place_0_0.csv" ,0 ,1 ,dir +"/static /place_0_0.csv" ,0 );
122
122
assertTrue ("Everything ok" ,true );
123
123
}
124
124
125
125
@ Test
126
126
public void tagClassIsSubclassOfTest () {
127
- testPairUniquenessPlusExistance (dir +"/tagclass_isSubclassOf_tagclass_0_0.csv" ,0 ,1 ,dir +"/tagclass_0_0.csv" ,0 );
127
+ testPairUniquenessPlusExistance (dir +"/static/ tagclass_isSubclassOf_tagclass_0_0.csv" ,0 ,1 ,dir +"/static /tagclass_0_0.csv" ,0 );
128
128
assertTrue ("Everything ok" ,true );
129
129
}
130
130
131
131
@ Test
132
132
public void tagHasTypeTagclassCheck () {
133
- testPairUniquenessPlusExistance (dir +"/tag_hasType_tagclass_0_0.csv" ,0 ,1 ,dir +"/tag_0_0.csv" ,0 ,dir +"/tagclass_0_0.csv" ,0 );
133
+ testPairUniquenessPlusExistance (dir +"/static/ tag_hasType_tagclass_0_0.csv" ,0 ,1 ,dir +"/static/ tag_0_0.csv" ,0 ,dir +"/static /tagclass_0_0.csv" ,0 );
134
134
assertTrue ("Everything ok" ,true );
135
135
}
136
136
137
137
@ Test
138
138
public void personStudyAtOrganisationCheck () {
139
- testPairUniquenessPlusExistance (dir +"/person_studyAt_organisation_0_0.csv" ,0 ,1 ,dir +"/person_0_0.csv" ,0 ,dir +"/organisation_0_0.csv" ,0 );
139
+ testPairUniquenessPlusExistance (dir +"/dynamic/ person_studyAt_organisation_0_0.csv" ,0 ,1 ,dir +"/dynamic/ person_0_0.csv" ,0 ,dir +"/static /organisation_0_0.csv" ,0 );
140
140
assertTrue ("Everything ok" ,true );
141
141
}
142
142
143
143
@ Test
144
144
public void personWorkAtOrganisationCheck () {
145
- testPairUniquenessPlusExistance (dir +"/person_workAt_organisation_0_0.csv" ,0 ,1 ,dir +"/person_0_0.csv" ,0 ,dir +"/organisation_0_0.csv" ,0 );
145
+ testPairUniquenessPlusExistance (dir +"/dynamic/ person_workAt_organisation_0_0.csv" ,0 ,1 ,dir +"/dynamic/ person_0_0.csv" ,0 ,dir +"/static /organisation_0_0.csv" ,0 );
146
146
assertTrue ("Everything ok" ,true );
147
147
}
148
148
149
149
@ Test
150
150
public void personHasInterestTagCheck () {
151
- testPairUniquenessPlusExistance (dir +"/person_hasInterest_tag_0_0.csv" ,0 ,1 ,dir +"/person_0_0.csv" ,0 ,dir +"/tag_0_0.csv" ,0 );
151
+ testPairUniquenessPlusExistance (dir +"/dynamic/ person_hasInterest_tag_0_0.csv" ,0 ,1 ,dir +"/dynamic/ person_0_0.csv" ,0 ,dir +"/static /tag_0_0.csv" ,0 );
152
152
assertTrue ("Everything ok" ,true );
153
153
}
154
154
155
155
@ Test
156
156
public void personIsLocatedInPlaceCheck () {
157
- testPairUniquenessPlusExistance (dir +"/person_isLocatedIn_place_0_0.csv" ,0 ,1 ,dir +"/person_0_0.csv" ,0 ,dir +"/place_0_0.csv" ,0 );
157
+ testPairUniquenessPlusExistance (dir +"/dynamic/ person_isLocatedIn_place_0_0.csv" ,0 ,1 ,dir +"/dynamic/ person_0_0.csv" ,0 ,dir +"/static /place_0_0.csv" ,0 );
158
158
assertTrue ("Everything ok" ,true );
159
159
}
160
160
161
161
@ Test
162
162
public void forumHasTagCheck () {
163
- testPairUniquenessPlusExistance (dir +"/forum_hasTag_tag_0_0.csv" ,0 ,1 ,dir +"/forum_0_0.csv" ,0 ,dir +"/tag_0_0.csv" ,0 );
163
+ testPairUniquenessPlusExistance (dir +"/dynamic/ forum_hasTag_tag_0_0.csv" ,0 ,1 ,dir +"/dynamic/ forum_0_0.csv" ,0 ,dir +"/static /tag_0_0.csv" ,0 );
164
164
assertTrue ("Everything ok" ,true );
165
165
}
166
166
167
167
@ Test
168
168
public void forumHasModeratorPersonCheck () {
169
- testPairUniquenessPlusExistance (dir +"/forum_hasModerator_person_0_0.csv" ,0 ,1 ,dir +"/forum_0_0.csv" ,0 ,dir +"/person_0_0.csv" ,0 );
169
+ testPairUniquenessPlusExistance (dir +"/dynamic/ forum_hasModerator_person_0_0.csv" ,0 ,1 ,dir +"/dynamic/ forum_0_0.csv" ,0 ,dir +"/dynamic /person_0_0.csv" ,0 );
170
170
assertTrue ("Everything ok" ,true );
171
171
}
172
172
173
173
@ Test
174
174
public void forumHasMemberPersonCheck () {
175
- testPairUniquenessPlusExistance (dir +"/forum_hasMember_person_0_0.csv" ,0 ,1 ,dir +"/forum_0_0.csv" ,0 ,dir +"/person_0_0.csv" ,0 );
175
+ testPairUniquenessPlusExistance (dir +"/dynamic/ forum_hasMember_person_0_0.csv" ,0 ,1 ,dir +"/dynamic/ forum_0_0.csv" ,0 ,dir +"/dynamic /person_0_0.csv" ,0 );
176
176
assertTrue ("Everything ok" ,true );
177
177
}
178
178
179
179
@ Test
180
180
public void forumContainerOfPostCheck () {
181
- testPairUniquenessPlusExistance (dir +"/forum_containerOf_post_0_0.csv" ,0 ,1 ,dir +"/forum_0_0.csv" ,0 ,dir +"/post_0_0.csv" ,0 );
181
+ testPairUniquenessPlusExistance (dir +"/dynamic/ forum_containerOf_post_0_0.csv" ,0 ,1 ,dir +"/dynamic/ forum_0_0.csv" ,0 ,dir +"/dynamic /post_0_0.csv" ,0 );
182
182
assertTrue ("Everything ok" ,true );
183
183
}
184
184
185
185
@ Test
186
186
public void commentHasCreatorPersonCheck () {
187
- testPairUniquenessPlusExistance (dir +"/comment_hasCreator_person_0_0.csv" ,0 ,1 ,dir +"/comment_0_0.csv" ,0 ,dir +"/person_0_0.csv" ,0 );
187
+ testPairUniquenessPlusExistance (dir +"/dynamic/ comment_hasCreator_person_0_0.csv" ,0 ,1 ,dir +"/dynamic/ comment_0_0.csv" ,0 ,dir +"/dynamic /person_0_0.csv" ,0 );
188
188
assertTrue ("Everything ok" ,true );
189
189
}
190
190
191
191
@ Test
192
192
public void commentHasTagTagCheck () {
193
- testPairUniquenessPlusExistance (dir +"/comment_hasTag_tag_0_0.csv" ,0 ,1 ,dir +"/comment_0_0.csv" ,0 ,dir +"/tag_0_0.csv" ,0 );
193
+ testPairUniquenessPlusExistance (dir +"/dynamic/ comment_hasTag_tag_0_0.csv" ,0 ,1 ,dir +"/dynamic/ comment_0_0.csv" ,0 ,dir +"/static /tag_0_0.csv" ,0 );
194
194
assertTrue ("Everything ok" ,true );
195
195
}
196
196
197
197
@ Test
198
198
public void commentIsLocatedInPlaceCheck () {
199
- testPairUniquenessPlusExistance (dir +"/comment_isLocatedIn_place_0_0.csv" ,0 ,1 ,dir +"/comment_0_0.csv" ,0 ,dir +"/place_0_0.csv" ,0 );
199
+ testPairUniquenessPlusExistance (dir +"/dynamic/ comment_isLocatedIn_place_0_0.csv" ,0 ,1 ,dir +"/dynamic/ comment_0_0.csv" ,0 ,dir +"/static /place_0_0.csv" ,0 );
200
200
assertTrue ("Everything ok" ,true );
201
201
}
202
202
203
203
@ Test
204
204
public void commentReplyOfCommentCheck () {
205
- testPairUniquenessPlusExistance (dir +"/comment_replyOf_comment_0_0.csv" ,0 ,1 ,dir +"/comment_0_0.csv" ,0 ,dir +"/comment_0_0.csv" ,0 );
205
+ testPairUniquenessPlusExistance (dir +"/dynamic/ comment_replyOf_comment_0_0.csv" ,0 ,1 ,dir +"/dynamic/ comment_0_0.csv" ,0 ,dir +"/dynamic /comment_0_0.csv" ,0 );
206
206
assertTrue ("Everything ok" ,true );
207
207
}
208
208
209
209
@ Test
210
210
public void commentReplyOfPostCheck () {
211
- testPairUniquenessPlusExistance (dir +"/comment_replyOf_post_0_0.csv" ,0 ,1 ,dir +"/comment_0_0.csv" ,0 ,dir +"/post_0_0.csv" ,0 );
211
+ testPairUniquenessPlusExistance (dir +"/dynamic/ comment_replyOf_post_0_0.csv" ,0 ,1 ,dir +"/dynamic/ comment_0_0.csv" ,0 ,dir +"/dynamic /post_0_0.csv" ,0 );
212
212
assertTrue ("Everything ok" ,true );
213
213
}
214
214
215
215
@ Test
216
216
public void postHasCreatorPersonCheck () {
217
- testPairUniquenessPlusExistance (dir +"/post_hasCreator_person_0_0.csv" ,0 ,1 ,dir +"/post_0_0.csv" ,0 ,dir +"/person_0_0.csv" ,0 );
217
+ testPairUniquenessPlusExistance (dir +"/dynamic/ post_hasCreator_person_0_0.csv" ,0 ,1 ,dir +"/dynamic/ post_0_0.csv" ,0 ,dir +"/dynamic /person_0_0.csv" ,0 );
218
218
assertTrue ("Everything ok" ,true );
219
219
}
220
220
221
221
@ Test
222
222
public void postIsLocatedInPlaceCheck () {
223
- testPairUniquenessPlusExistance (dir +"/post_isLocatedIn_place_0_0.csv" ,0 ,1 ,dir +"/post_0_0.csv" ,0 ,dir +"/place_0_0.csv" ,0 );
223
+ testPairUniquenessPlusExistance (dir +"/dynamic/ post_isLocatedIn_place_0_0.csv" ,0 ,1 ,dir +"/dynamic/ post_0_0.csv" ,0 ,dir +"/static /place_0_0.csv" ,0 );
224
224
assertTrue ("Everything ok" ,true );
225
225
}
226
226
227
227
@ Test
228
228
public void personLikesCommentCheck () {
229
- testPairUniquenessPlusExistance (dir +"/person_likes_comment_0_0.csv" ,0 ,1 ,dir +"/person_0_0.csv" ,0 ,dir +"/comment_0_0.csv" ,0 );
229
+ testPairUniquenessPlusExistance (dir +"/dynamic/ person_likes_comment_0_0.csv" ,0 ,1 ,dir +"/dynamic/ person_0_0.csv" ,0 ,dir +"/dynamic /comment_0_0.csv" ,0 );
230
230
assertTrue ("Everything ok" ,true );
231
231
}
232
232
233
233
@ Test
234
234
public void personLikesPostCheck () {
235
- testPairUniquenessPlusExistance (dir +"/person_likes_post_0_0.csv" ,0 ,1 ,dir +"/person_0_0.csv" ,0 ,dir +"/post_0_0.csv" ,0 );
235
+ testPairUniquenessPlusExistance (dir +"/dynamic/ person_likes_post_0_0.csv" ,0 ,1 ,dir +"/dynamic/ person_0_0.csv" ,0 ,dir +"/dynamic /post_0_0.csv" ,0 );
236
236
assertTrue ("Everything ok" ,true );
237
237
}
238
238
239
239
@ Test
240
240
public void personEmailAddressCheck () {
241
- testIdExistance (dir +"/person_0_0.csv" ,0 ,dir +"/person_email_emailaddress_0_0.csv" ,0 );
242
- testStringLength (dir +"/person_email_emailaddress_0_0.csv" , 1 , 256 );
241
+ testIdExistance (dir +"/dynamic/ person_0_0.csv" ,0 ,dir +"/dynamic /person_email_emailaddress_0_0.csv" ,0 );
242
+ testStringLength (dir +"/dynamic/ person_email_emailaddress_0_0.csv" , 1 , 256 );
243
243
assertTrue ("Everything ok" ,true );
244
244
}
245
245
@@ -254,7 +254,7 @@ public void updateStreamForumsConsistencyCheck() {
254
254
public void queryParamsTest () {
255
255
//Creating person id check
256
256
LongParser parser = new LongParser ();
257
- ColumnSet <Long > persons = new ColumnSet <Long >(parser ,new File (dir +"/person_0_0.csv" ),0 ,1 );
257
+ ColumnSet <Long > persons = new ColumnSet <Long >(parser ,new File (dir +"/dynamic/ person_0_0.csv" ),0 ,1 );
258
258
List <ColumnSet <Long >> personsRef = new ArrayList <ColumnSet <Long >>();
259
259
personsRef .add (persons );
260
260
List <Integer > personIndex = new ArrayList <Integer >();
@@ -263,7 +263,7 @@ public void queryParamsTest() {
263
263
264
264
//Creating name check
265
265
StringParser strParser = new StringParser ();
266
- ColumnSet <String > names = new ColumnSet <String >(strParser ,new File (dir +"/person_0_0.csv" ),1 ,1 );
266
+ ColumnSet <String > names = new ColumnSet <String >(strParser ,new File (dir +"/dynamic/ person_0_0.csv" ),1 ,1 );
267
267
List <ColumnSet <String >> namesRef = new ArrayList <ColumnSet <String >>();
268
268
namesRef .add (names );
269
269
List <Integer > namesIndex = new ArrayList <Integer >();
@@ -284,7 +284,7 @@ public void queryParamsTest() {
284
284
testLongGE (sdir +"/interactive_2_param.txt" ,1 , Dictionaries .dates .getStartDateTime ());
285
285
286
286
//Creating country check
287
- ColumnSet <String > places = new ColumnSet <String >(strParser ,new File (dir +"/place_0_0.csv" ),1 ,1 );
287
+ ColumnSet <String > places = new ColumnSet <String >(strParser ,new File (dir +"/static/ place_0_0.csv" ),1 ,1 );
288
288
List <ColumnSet <String >> placesRef = new ArrayList <ColumnSet <String >>();
289
289
placesRef .add (places );
290
290
List <Integer > countriesIndex = new ArrayList <Integer >();
@@ -313,7 +313,7 @@ public void queryParamsTest() {
313
313
testLongGE (sdir +"/interactive_5_param.txt" ,1 , Dictionaries .dates .getStartDateTime ());
314
314
315
315
//Creating tag check
316
- ColumnSet <String > tags = new ColumnSet <String >(strParser ,new File (dir +"/tag_0_0.csv" ),1 ,1 );
316
+ ColumnSet <String > tags = new ColumnSet <String >(strParser ,new File (dir +"/static/ tag_0_0.csv" ),1 ,1 );
317
317
List <ColumnSet <String >> tagsRef = new ArrayList <ColumnSet <String >>();
318
318
tagsRef .add (tags );
319
319
List <Integer > tagsIndex = new ArrayList <Integer >();
@@ -354,7 +354,7 @@ public void queryParamsTest() {
354
354
assertTrue ("ERROR PASSING TEST QUERY 11 PERSON EXISTS " ,fileChecker .run (1 ));
355
355
356
356
//Creating tagClass check
357
- ColumnSet <String > tagClass = new ColumnSet <String >(strParser ,new File (dir +"/tagclass_0_0.csv" ),1 ,1 );
357
+ ColumnSet <String > tagClass = new ColumnSet <String >(strParser ,new File (dir +"/static/ tagclass_0_0.csv" ),1 ,1 );
358
358
List <ColumnSet <String >> tagClassRef = new ArrayList <ColumnSet <String >>();
359
359
tagClassRef .add (tagClass );
360
360
List <Integer > tagClassIndex = new ArrayList <Integer >();
0 commit comments