c1a99e754aa99a451ad926184e6d60a9c55f0fa5
[sdc.git] /
1 package org.openecomp.sdc.be.model.tosca.validators;
2
3 import java.util.Map;
4
5 import javax.annotation.Generated;
6
7 import org.junit.Assert;
8 import org.junit.Test;
9 import org.openecomp.sdc.be.model.DataTypeDefinition;
10
11 public class ToscaBooleanValidatorTest {
12
13         private ToscaBooleanValidator createTestSubject() {
14                 return ToscaBooleanValidator.getInstance();
15         }
16
17         
18         @Test
19         public void testGetInstance() throws Exception {
20                 ToscaBooleanValidator result;
21
22                 // default test
23                 result = ToscaBooleanValidator.getInstance();
24         }
25
26         
27         @Test
28         public void testIsValid() throws Exception {
29                 ToscaBooleanValidator testSubject;
30                 String value = "";
31                 String innerType = "";
32                 Map<String, DataTypeDefinition> dataTypes = null;
33                 boolean result;
34
35                 // test 1
36                 testSubject = createTestSubject();
37                 value = null;
38                 result = testSubject.isValid(value, innerType, dataTypes);
39
40                 // test 2
41                 testSubject = createTestSubject();
42                 value = "";
43                 result = testSubject.isValid(value, innerType, dataTypes);
44         }
45
46         
47         @Test
48         public void testIsValid_1() throws Exception {
49                 ToscaBooleanValidator testSubject;
50                 String value = "";
51                 String innerType = "";
52                 boolean result;
53
54                 // default test
55                 testSubject = createTestSubject();
56                 result = testSubject.isValid(value, innerType);
57         }
58 }