aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/openecomp/vid/services/ChangeManagementServiceImplTest.java
blob: bd1e72b705ff424bfc250c72e96b24c61a438169 (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
66
67
68
69
package org.openecomp.vid.services;

import static org.junit.Assert.*;
import java.util.*;

import org.json.simple.JSONArray;
import org.junit.Assert;
import org.junit.Test;
import org.openecomp.vid.changeManagement.ChangeManagementRequest;
import org.openecomp.vid.changeManagement.RequestDetails;
import org.openecomp.vid.mso.rest.Request;
import org.springframework.http.ResponseEntity;

public class ChangeManagementServiceImplTest {

	private ChangeManagementServiceImpl createTestSubject() {
		return new ChangeManagementServiceImpl();
	}

	
	/*@Test
	public void testGetMSOChangeManagements() throws Exception {
		ChangeManagementServiceImpl testSubject;
		Collection<Request> result;

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

	
	@Test
	public void testFindRequestByVnfName() throws Exception {
	ChangeManagementServiceImpl testSubject;List<RequestDetails> requests = null;
	String vnfName = "";
	RequestDetails result;
	
	// test 1
	testSubject=createTestSubject();requests = null;
	result=Deencapsulation.invoke(testSubject, "findRequestByVnfName", new Object[]{List<RequestDetails>.class, vnfName});
	Assert.assertEquals(null, result);
	}*/

	
	@Test
	public void testDoChangeManagement() throws Exception {
		ChangeManagementServiceImpl testSubject;
		ChangeManagementRequest request = null;
		String vnfName = "";
		ResponseEntity<String> result;

		// test 1
		testSubject = createTestSubject();
		request = null;
		result = testSubject.doChangeManagement(request, vnfName);
		Assert.assertEquals(null, result);
	}

	
	@Test
	public void testGetSchedulerChangeManagements() throws Exception {
		ChangeManagementServiceImpl testSubject;
		JSONArray result;

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