add removed unit tests
[sdc.git] / common-app-api / src / test / java / org / openecomp / sdc / common / util / ValidationUtilsTest.java
1 package org.openecomp.sdc.common.util;
2
3 import java.util.List;
4
5 import org.junit.Assert;
6 import org.junit.Test;
7
8
9 public class ValidationUtilsTest {
10
11         private ValidationUtils createTestSubject() {
12                 return new ValidationUtils();
13         }
14
15         
16         @Test
17         public void testValidateArtifactLabel() throws Exception {
18                 String label = "";
19                 boolean result;
20
21                 // default test
22                 result = ValidationUtils.validateArtifactLabel(label);
23         }
24
25         
26         @Test
27         public void testValidateArtifactDisplayName() throws Exception {
28                 String displayName = "";
29                 boolean result;
30
31                 // default test
32                 result = ValidationUtils.validateArtifactDisplayName(displayName);
33         }
34
35         
36
37         
38         @Test
39         public void testNormalizeCategoryName4Display() throws Exception {
40                 String str = "";
41                 String result;
42
43                 // test 1
44                 str = "123";
45                 result = ValidationUtils.normalizeCategoryName4Display(str);
46                 Assert.assertEquals("123", result);
47
48                 // test 2
49                 str = "123#123";
50                 result = ValidationUtils.normalizeCategoryName4Display(str);
51                 Assert.assertEquals("123#123", result);
52         }
53
54         
55         @Test
56         public void testNormalizeCategoryName4Uniqueness() throws Exception {
57                 String str = "";
58                 String result;
59
60                 // default test
61                 result = ValidationUtils.normalizeCategoryName4Uniqueness(str);
62         }
63
64         
65         @Test
66         public void testValidateCategoryDisplayNameLength() throws Exception {
67                 String label = "";
68                 boolean result;
69
70                 // default test
71                 result = ValidationUtils.validateCategoryDisplayNameLength(label);
72         }
73
74         
75         @Test
76         public void testValidateProductFullNameLength() throws Exception {
77                 String fullName = "";
78                 boolean result;
79
80                 // default test
81                 result = ValidationUtils.validateProductFullNameLength(fullName);
82         }
83
84         
85         @Test
86         public void testValidateArtifactLabelLength() throws Exception {
87                 String label = "";
88                 boolean result;
89
90                 // default test
91                 result = ValidationUtils.validateArtifactLabelLength(label);
92         }
93
94         
95         @Test
96         public void testValidateResourceInstanceNameLength() throws Exception {
97                 String resourceInstanceName = "";
98                 boolean result;
99
100                 // default test
101                 result = ValidationUtils.validateResourceInstanceNameLength(resourceInstanceName);
102         }
103
104         
105         @Test
106         public void testValidateResourceInstanceName() throws Exception {
107                 String resourceInstanceName = "";
108                 boolean result;
109
110                 // default test
111                 result = ValidationUtils.validateResourceInstanceName(resourceInstanceName);
112         }
113
114         
115         @Test
116         public void testValidateUrlLength() throws Exception {
117                 String url = "";
118                 boolean result;
119
120                 // default test
121                 result = ValidationUtils.validateUrlLength(url);
122         }
123
124         
125         @Test
126         public void testValidateArtifactNameLength() throws Exception {
127                 String artifactName = "";
128                 boolean result;
129
130                 // default test
131                 result = ValidationUtils.validateArtifactNameLength(artifactName);
132         }
133
134         
135         @Test
136         public void testValidateComponentNamePattern() throws Exception {
137                 String componentName = "";
138                 boolean result;
139
140                 // default test
141                 result = ValidationUtils.validateComponentNamePattern(componentName);
142         }
143
144         
145         @Test
146         public void testValidateComponentNameLength() throws Exception {
147                 String componentName = "";
148                 boolean result;
149
150                 // default test
151                 result = ValidationUtils.validateComponentNameLength(componentName);
152         }
153
154         
155         @Test
156         public void testValidateIcon() throws Exception {
157                 String icon = "";
158                 boolean result;
159
160                 // default test
161                 result = ValidationUtils.validateIcon(icon);
162         }
163
164         
165         @Test
166         public void testValidateIconLength() throws Exception {
167                 String icon = "";
168                 boolean result;
169
170                 // default test
171                 result = ValidationUtils.validateIconLength(icon);
172         }
173
174         
175         @Test
176         public void testValidateProjectCode() throws Exception {
177                 String projectCode = "";
178                 boolean result;
179
180                 // default test
181                 result = ValidationUtils.validateProjectCode(projectCode);
182         }
183
184         
185         @Test
186         public void testValidateProjectCodeLegth() throws Exception {
187                 String projectCode = "";
188                 boolean result;
189
190                 // default test
191                 result = ValidationUtils.validateProjectCodeLegth(projectCode);
192         }
193
194         
195         @Test
196         public void testValidateContactId() throws Exception {
197                 String contactId = "";
198                 boolean result;
199
200                 // default test
201                 result = ValidationUtils.validateContactId(contactId);
202         }
203
204         
205         @Test
206         public void testValidateCost() throws Exception {
207                 String cost = "";
208                 boolean result;
209
210                 // default test
211                 result = ValidationUtils.validateCost(cost);
212         }
213
214         
215         @Test
216         public void testRemoveHtmlTags() throws Exception {
217                 String str = "";
218                 String result;
219
220                 // default test
221                 result = ValidationUtils.removeHtmlTags(str);
222         }
223
224         
225         @Test
226         public void testRemoveAllTags() throws Exception {
227                 String htmlText = "";
228                 String result;
229
230                 // default test
231                 result = ValidationUtils.removeAllTags(htmlText);
232         }
233
234         
235         @Test
236         public void testNormaliseWhitespace() throws Exception {
237                 String str = "";
238                 String result;
239
240                 // default test
241                 result = ValidationUtils.normaliseWhitespace(str);
242         }
243
244         
245         @Test
246         public void testStripOctets() throws Exception {
247                 String str = "";
248                 String result;
249
250                 // default test
251                 result = ValidationUtils.stripOctets(str);
252         }
253
254         
255         @Test
256         public void testRemoveNoneUtf8Chars() throws Exception {
257                 String input = "";
258                 String result;
259
260                 // default test
261                 result = ValidationUtils.removeNoneUtf8Chars(input);
262         }
263
264         
265         @Test
266         public void testValidateIsEnglish() throws Exception {
267                 String input = "";
268                 boolean result;
269
270                 // default test
271                 result = ValidationUtils.validateIsEnglish(input);
272         }
273
274         
275         @Test
276         public void testValidateIsAscii() throws Exception {
277                 String input = "";
278                 boolean result;
279
280                 // default test
281                 result = ValidationUtils.validateIsAscii(input);
282         }
283
284         
285         @Test
286         public void testConvertHtmlTagsToEntities() throws Exception {
287                 String input = "";
288                 String result;
289
290                 // default test
291                 result = ValidationUtils.convertHtmlTagsToEntities(input);
292         }
293
294         
295
296
297         
298
299
300         
301         @Test
302         public void testValidateTagListLength() throws Exception {
303                 int tagListLength = 0;
304                 boolean result;
305
306                 // default test
307                 result = ValidationUtils.validateTagListLength(tagListLength);
308         }
309
310         
311         @Test
312         public void testValidateDescriptionLength() throws Exception {
313                 String description = "";
314                 boolean result;
315
316                 // default test
317                 result = ValidationUtils.validateDescriptionLength(description);
318         }
319
320         
321         @Test
322         public void testValidateStringNotEmpty() throws Exception {
323                 String value = "";
324                 boolean result;
325
326                 // test 1
327                 value = null;
328                 result = ValidationUtils.validateStringNotEmpty(value);
329                 Assert.assertEquals(false, result);
330
331                 // test 2
332                 value = "";
333                 result = ValidationUtils.validateStringNotEmpty(value);
334                 Assert.assertEquals(false, result);
335         }
336
337         
338         @Test
339         public void testValidateListNotEmpty() throws Exception {
340                 List<?> list = null;
341                 boolean result;
342
343                 // test 1
344                 list = null;
345                 result = ValidationUtils.validateListNotEmpty(list);
346                 Assert.assertEquals(false, result);
347         }
348
349         
350         @Test
351         public void testValidateVendorName() throws Exception {
352                 String vendorName = "";
353                 boolean result;
354
355                 // default test
356                 result = ValidationUtils.validateVendorName(vendorName);
357         }
358
359         
360         @Test
361         public void testValidateVendorNameLength() throws Exception {
362                 String vendorName = "";
363                 boolean result;
364
365                 // default test
366                 result = ValidationUtils.validateVendorNameLength(vendorName);
367         }
368
369         
370         @Test
371         public void testValidateResourceVendorModelNumberLength() throws Exception {
372                 String resourceVendorModelNumber = "";
373                 boolean result;
374
375                 // default test
376                 result = ValidationUtils.validateResourceVendorModelNumberLength(resourceVendorModelNumber);
377         }
378
379         
380         @Test
381         public void testValidateVendorRelease() throws Exception {
382                 String vendorRelease = "";
383                 boolean result;
384
385                 // default test
386                 result = ValidationUtils.validateVendorRelease(vendorRelease);
387         }
388
389         
390         @Test
391         public void testValidateVendorReleaseLength() throws Exception {
392                 String vendorRelease = "";
393                 boolean result;
394
395                 // default test
396                 result = ValidationUtils.validateVendorReleaseLength(vendorRelease);
397         }
398
399         
400         @Test
401         public void testValidateServiceTypeLength() throws Exception {
402                 String serviceType = "";
403                 boolean result;
404
405                 // default test
406                 result = ValidationUtils.validateServiceTypeLength(serviceType);
407         }
408
409         
410         @Test
411         public void testValidateServiceRoleLength() throws Exception {
412                 String serviceRole = "";
413                 boolean result;
414
415                 // default test
416                 result = ValidationUtils.validateServiceRoleLength(serviceRole);
417         }
418
419         
420         @Test
421         public void testHasBeenCertified() throws Exception {
422                 String version = "";
423                 boolean result;
424
425                 // default test
426                 result = ValidationUtils.hasBeenCertified(version);
427         }
428
429         
430         @Test
431         public void testNormaliseComponentName() throws Exception {
432                 String name = "";
433                 String result;
434
435                 // default test
436                 result = ValidationUtils.normaliseComponentName(name);
437         }
438
439         
440         @Test
441         public void testNormalizeComponentInstanceName() throws Exception {
442                 String name = "";
443                 String result;
444
445                 // default test
446                 result = ValidationUtils.normalizeComponentInstanceName(name);
447         }
448
449         
450
451
452         
453         @Test
454         public void testConvertToSystemName() throws Exception {
455                 String name = "";
456                 String result;
457
458                 // default test
459                 result = ValidationUtils.convertToSystemName(name);
460         }
461
462         
463         @Test
464         public void testNormalizeFileName() throws Exception {
465                 String filename = "";
466                 String result;
467
468                 // default test
469                 result = ValidationUtils.normalizeFileName(filename);
470         }
471
472         
473
474
475         
476         @Test
477         public void testValidateUrl() throws Exception {
478                 String url = "";
479                 boolean result;
480
481                 // default test
482                 result = ValidationUtils.validateUrl(url);
483         }
484
485         
486         @Test
487         public void testCleanArtifactDisplayName() throws Exception {
488                 String strIn = "";
489                 String result;
490
491                 // default test
492                 result = ValidationUtils.cleanArtifactDisplayName(strIn);
493         }
494
495         
496         @Test
497         public void testNormalizeArtifactLabel() throws Exception {
498                 String strIn = "";
499                 String result;
500
501                 // default test
502                 result = ValidationUtils.normalizeArtifactLabel(strIn);
503         }
504
505         
506         @Test
507         public void testValidateAdditionalInformationKeyName() throws Exception {
508                 String str = "";
509                 boolean result;
510
511                 // default test
512                 result = ValidationUtils.validateAdditionalInformationKeyName(str);
513         }
514
515         
516
517
518         
519
520
521         
522         @Test
523         public void testValidateConsumerName() throws Exception {
524                 String consumerName = "";
525                 boolean result;
526
527                 // default test
528                 result = ValidationUtils.validateConsumerName(consumerName);
529         }
530
531         
532         @Test
533         public void testIsUTF8Str() throws Exception {
534                 String str = "";
535                 boolean result;
536
537                 // default test
538                 result = ValidationUtils.isUTF8Str(str);
539         }
540
541         
542         @Test
543         public void testValidateConsumerPassSalt() throws Exception {
544                 String consumerSalt = "";
545                 boolean result;
546
547                 // default test
548                 result = ValidationUtils.validateConsumerPassSalt(consumerSalt);
549         }
550
551         
552         @Test
553         public void testIsFloatNumber() throws Exception {
554                 String number = "";
555                 boolean result;
556
557                 // default test
558                 result = ValidationUtils.isFloatNumber(number);
559         }
560
561         
562         @Test
563         public void testValidateCertifiedVersion() throws Exception {
564                 String version = "";
565                 boolean result;
566
567                 // default test
568                 result = ValidationUtils.validateCertifiedVersion(version);
569         }
570
571         
572         @Test
573         public void testValidateMinorVersion() throws Exception {
574                 String version = "";
575                 boolean result;
576
577                 // default test
578                 result = ValidationUtils.validateMinorVersion(version);
579         }
580
581         
582         @Test
583         public void testNormaliseProductName() throws Exception {
584                 String name = "";
585                 String result;
586
587                 // default test
588                 result = ValidationUtils.normaliseProductName(name);
589         }
590
591         
592
593
594         
595         @Test
596         public void testRemoveHtmlTagsOnly() throws Exception {
597                 String htmlText = "";
598                 String result;
599
600                 // default test
601                 result = ValidationUtils.removeHtmlTagsOnly(htmlText);
602         }
603 }