summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/test/java/org/openecomp/sdc/common/http/config/TimeoutsTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api/src/test/java/org/openecomp/sdc/common/http/config/TimeoutsTest.java')
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/http/config/TimeoutsTest.java115
1 files changed, 115 insertions, 0 deletions
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/http/config/TimeoutsTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/http/config/TimeoutsTest.java
new file mode 100644
index 0000000000..d7b14f64ee
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/http/config/TimeoutsTest.java
@@ -0,0 +1,115 @@
+package org.openecomp.sdc.common.http.config;
+
+import javax.annotation.Generated;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class TimeoutsTest {
+
+ private Timeouts createTestSubject() {
+ return new Timeouts(100, 200);
+ }
+
+
+ @Test
+ public void testGetConnectTimeoutMs() throws Exception {
+ Timeouts testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getConnectTimeoutMs();
+ }
+
+
+ @Test
+ public void testSetConnectTimeoutMs() throws Exception {
+ Timeouts testSubject;
+ int connectTimeoutMs = 100;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setConnectTimeoutMs(connectTimeoutMs);
+ }
+
+
+ @Test
+ public void testGetReadTimeoutMs() throws Exception {
+ Timeouts testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReadTimeoutMs();
+ }
+
+
+ @Test
+ public void testSetReadTimeoutMs() throws Exception {
+ Timeouts testSubject;
+ int readTimeoutMs = 100;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReadTimeoutMs(readTimeoutMs);
+ }
+
+
+ @Test
+ public void testGetConnectPoolTimeoutMs() throws Exception {
+ Timeouts testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getConnectPoolTimeoutMs();
+ }
+
+
+ @Test
+ public void testSetConnectPoolTimeoutMs() throws Exception {
+ Timeouts testSubject;
+ int connectPoolTimeoutMs = 100;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setConnectPoolTimeoutMs(connectPoolTimeoutMs);
+ }
+
+
+ @Test
+ public void testHashCode() throws Exception {
+ Timeouts testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+ @Test
+ public void testEquals() throws Exception {
+ Timeouts testSubject;
+ Object obj = null;
+ boolean result;
+
+ // test 1
+ testSubject = createTestSubject();
+ obj = null;
+ result = testSubject.equals(obj);
+ Assert.assertEquals(false, result);
+ }
+
+
+ @Test
+ public void testToString() throws Exception {
+ Timeouts testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+} \ No newline at end of file