re base code
[sdc.git] / common-app-api / src / test / java / org / openecomp / sdc / common / http / config / TimeoutsTest.java
1 package org.openecomp.sdc.common.http.config;
2
3 import org.junit.Assert;
4 import org.junit.Test;
5
6 public class TimeoutsTest {
7
8         private Timeouts createTestSubject() {
9                 return new Timeouts(100, 200);
10         }
11
12         
13         @Test
14         public void testGetConnectTimeoutMs() throws Exception {
15                 Timeouts testSubject;
16                 int result;
17
18                 // default test
19                 testSubject = createTestSubject();
20                 result = testSubject.getConnectTimeoutMs();
21         }
22
23         
24         @Test
25         public void testSetConnectTimeoutMs() throws Exception {
26                 Timeouts testSubject;
27                 int connectTimeoutMs = 100;
28
29                 // default test
30                 testSubject = createTestSubject();
31                 testSubject.setConnectTimeoutMs(connectTimeoutMs);
32         }
33
34         
35         @Test
36         public void testGetReadTimeoutMs() throws Exception {
37                 Timeouts testSubject;
38                 int result;
39
40                 // default test
41                 testSubject = createTestSubject();
42                 result = testSubject.getReadTimeoutMs();
43         }
44
45         
46         @Test
47         public void testSetReadTimeoutMs() throws Exception {
48                 Timeouts testSubject;
49                 int readTimeoutMs = 100;
50
51                 // default test
52                 testSubject = createTestSubject();
53                 testSubject.setReadTimeoutMs(readTimeoutMs);
54         }
55
56         
57         @Test
58         public void testGetConnectPoolTimeoutMs() throws Exception {
59                 Timeouts testSubject;
60                 int result;
61
62                 // default test
63                 testSubject = createTestSubject();
64                 result = testSubject.getConnectPoolTimeoutMs();
65         }
66
67         
68         @Test
69         public void testSetConnectPoolTimeoutMs() throws Exception {
70                 Timeouts testSubject;
71                 int connectPoolTimeoutMs = 100;
72
73                 // default test
74                 testSubject = createTestSubject();
75                 testSubject.setConnectPoolTimeoutMs(connectPoolTimeoutMs);
76         }
77
78         
79         @Test
80         public void testHashCode() throws Exception {
81                 Timeouts testSubject;
82                 int result;
83
84                 // default test
85                 testSubject = createTestSubject();
86                 result = testSubject.hashCode();
87         }
88
89         
90         @Test
91         public void testEquals() throws Exception {
92                 Timeouts testSubject;
93                 Object obj = null;
94                 boolean result;
95
96                 // test 1
97                 testSubject = createTestSubject();
98                 obj = null;
99                 result = testSubject.equals(obj);
100                 Assert.assertEquals(false, result);
101         }
102
103         
104         @Test
105         public void testToString() throws Exception {
106                 Timeouts testSubject;
107                 String result;
108
109                 // default test
110                 testSubject = createTestSubject();
111                 result = testSubject.toString();
112         }
113 }