summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/model/ExceptionResponseTest.java
blob: 6d1a7ada918fe9c6e188ac1a8ce4a050bfa2c426 (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.model;

import org.junit.Test;

public class ExceptionResponseTest {

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

    @Test
    public void testGetException() throws Exception {
        ExceptionResponse testSubject;
        String result;

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

    @Test
    public void testSetException() throws Exception {
        ExceptionResponse testSubject;
        String exception = "";

        // default test
        testSubject = createTestSubject();
        testSubject.setException(exception);
    }

    @Test
    public void testGetMessage() throws Exception {
        ExceptionResponse testSubject;
        String result;

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

    @Test
    public void testSetMessage() throws Exception {
        ExceptionResponse testSubject;
        String message = "";

        // default test
        testSubject = createTestSubject();
        testSubject.setMessage(message);
    }
}