blob: 607182ea95314e0970c30cec5e186f96e4c0f3d6 (
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
|
package org.onap.ccsdk.sli.adaptors.aai;
import static org.junit.Assert.*;
import java.util.ArrayList;
import org.onap.ccsdk.sli.adaptors.aai.update.Action;
import org.onap.ccsdk.sli.adaptors.aai.update.ActionDatum;
import org.junit.Test;
public class ActionUpdateTest {
@Test
public void getActionData() throws Exception {
final Action resolver = new Action();
assertNotNull(resolver.getActionData());
}
@Test
public void setActionData() throws Exception {
final Action resolver = new Action();
resolver.setActionData( new ArrayList<ActionDatum>());
}
@Test
public void setActionType() throws Exception {
final Action resolver = new Action();
resolver.setActionType("create");
assertEquals("create", resolver.getActionType());
}
@Test
public void getAdditionalProperties() throws Exception {
final Action resolver = new Action();
assertNotNull(resolver.getAdditionalProperties());
}
@Test
public void setAdditionalProperty() throws Exception {
final Action resolver = new Action();
resolver.setAdditionalProperty("outcome", "success");
assertEquals("success", resolver.getAdditionalProperties().get("outcome"));
}
}
|