aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/mso/rest/ResponseTest.java
blob: 56ec6a49e103dc109c2aad211d1b56ab3e680e3f (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
package org.onap.vid.mso.rest;

import org.junit.Test;

public class ResponseTest {

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

    @Test
    public void testGetStatus() throws Exception {
        Response testSubject;
        int result;

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

    @Test
    public void testSetStatus() throws Exception {
        Response testSubject;
        int status = 0;

        // default test
        testSubject = createTestSubject();
        testSubject.setStatus(status);
    }

    @Test
    public void testGetEntity() throws Exception {
        Response testSubject;
        RequestList result;

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

    @Test
    public void testSetEntity() throws Exception {
        Response testSubject;
        RequestList entity = null;

        // default test
        testSubject = createTestSubject();
        testSubject.setEntity(entity);
    }
}