aboutsummaryrefslogtreecommitdiffstats
path: root/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/ComponentFieldsEnumTest.java
blob: 3b6a1f604b13cd1bec53ecf4b17967160af78094 (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
package org.openecomp.sdc.be.datatypes.enums;

import org.junit.Test;

public class ComponentFieldsEnumTest {

	private ComponentFieldsEnum createTestSubject() {
		return ComponentFieldsEnum.ADDITIONAL_INFORMATION;
	}

	@Test
	public void testGetValue() throws Exception {
		ComponentFieldsEnum testSubject;
		String result;

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

	@Test
	public void testFindByValue() throws Exception {
		String value = "artifacts";
		ComponentFieldsEnum result;

		// default test
		result = ComponentFieldsEnum.findByValue(value);
		result = ComponentFieldsEnum.findByValue("");
	}
}