summaryrefslogtreecommitdiffstats
path: root/adaptors/aai-service/provider/src/test/java/org/onap/ccsdk/sli/adaptors/aai/data/notify/KeyDatumTest.java
blob: 2ea9152135b0cc693c5024b0cfa4fdaef182f8a1 (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.onap.ccsdk.sli.adaptors.aai.data.notify;

import static org.junit.Assert.*;

import org.junit.BeforeClass;
import org.junit.Test;

public class KeyDatumTest {

    @BeforeClass
    public static void setUpBeforeClass() throws Exception {
    }

    @Test
    public void testSetKeyName() {
        String testString = "test-value";
        KeyDatum event = new  KeyDatum();
        event.setKeyName(testString);
        assertEquals(event.getKeyName(), testString);
    }

    @Test
    public void testSetKeyValue() {
        String testString = "test-value";
        KeyDatum event = new  KeyDatum();
        event.setKeyValue(testString);
        assertEquals(event.getKeyValue(), testString);
    }

    @Test
    public void testSetAdditionalProperty() {
        String testString = "test-value";
        KeyDatum event = new  KeyDatum();
        event.setAdditionalProperty("test-key", testString);
        assertEquals(event.getAdditionalProperties().get("test-key"), testString);
    }

}