summaryrefslogtreecommitdiffstats
path: root/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/ToscaTypeTest.java
blob: 8028813aaf18b5eb1fc90c697b5f4531e14b95a2 (plain)
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
package org.openecomp.sdc.be.model.tosca;

import org.junit.Assert;
import org.junit.Test;


public class ToscaTypeTest {

	private ToscaType createTestSubject() {
		return  ToscaType.BOOLEAN;
	}

	
	@Test
	public void testFromYamlTypeName() throws Exception {
		String typeName = "";
		ToscaType result;

		// test 1
		typeName = null;
		result = ToscaType.fromYamlTypeName(typeName);
		Assert.assertEquals(null, result);

		// test 2
		typeName = "";
		result = ToscaType.fromYamlTypeName(typeName);
		Assert.assertEquals(null, result);
	}

	
	@Test
	public void testIsValidValue() throws Exception {
		ToscaType testSubject;
		String value = "";
		boolean result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.isValidValue(value);
	}


	
	@Test
	public void testConvert() throws Exception {
		ToscaType testSubject;
		String value = "";
		Object result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.convert(value);
	}

	
	@Test
	public void testToString() throws Exception {
		ToscaType testSubject;
		String result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.toString();
	}
}