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