summaryrefslogtreecommitdiffstats
path: root/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/UpdatePropertyOnVertexTest.java
blob: 4db5c0626205eb0cb806010ea3a1439910198d8a (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
package org.openecomp.sdc.asdctool.impl;

import com.thinkaurelius.titan.core.TitanGraph;
import org.junit.Test;

import java.util.List;
import java.util.Map;

public class UpdatePropertyOnVertexTest {

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

	@Test(expected=IllegalArgumentException.class)
	public void testOpenGraph() throws Exception {
		UpdatePropertyOnVertex testSubject;
		String titanFileLocation = "";
		TitanGraph result;

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

	@Test(expected=NullPointerException.class)
	public void testUpdatePropertyOnServiceAtLeastCertified() throws Exception {
		UpdatePropertyOnVertex testSubject;
		String titanFile = "";
		Map<String, Object> keyValueToSet = null;
		List<Map<String, Object>> orCriteria = null;
		Integer result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.updatePropertyOnServiceAtLeastCertified(titanFile, keyValueToSet, orCriteria);
	}
}