Merge "updated ARIA version"
[so.git] / mso-api-handlers / mso-requests-db / src / test / java / org / openecomp / mso / requestsdb / adapter / TimestampXMLAdapterESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Wed Dec 14 15:14:31 GMT 2016
4  */
5
6 package org.openecomp.mso.requestsdb.adapter;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
11 import java.sql.Timestamp;
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.junit.runner.RunWith;
15 import org.openecomp.mso.requestsdb.adapter.TimestampXMLAdapter;
16
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
18 public class TimestampXMLAdapterESTest extends TimestampXMLAdapterESTestscaffolding {
19
20   @Test(timeout = 4000)
21   public void test0()  throws Throwable  {
22       TimestampXMLAdapter timestampXMLAdapter0 = new TimestampXMLAdapter();
23       Long long0 = new Long((-3027L));
24       Timestamp timestamp0 = timestampXMLAdapter0.unmarshal(long0);
25       Long long1 = timestampXMLAdapter0.marshal(timestamp0);
26       assertTrue(long1.equals((Object)long0));
27   }
28
29   @Test(timeout = 4000)
30   public void test1()  throws Throwable  {
31       TimestampXMLAdapter timestampXMLAdapter0 = new TimestampXMLAdapter();
32       Long long0 = new Long(861L);
33       Timestamp timestamp0 = timestampXMLAdapter0.unmarshal(long0);
34       Long long1 = timestampXMLAdapter0.marshal(timestamp0);
35       assertEquals(861L, (long)long1);
36   }
37
38   @Test(timeout = 4000)
39   public void test2()  throws Throwable  {
40       TimestampXMLAdapter timestampXMLAdapter0 = new TimestampXMLAdapter();
41       try { 
42         timestampXMLAdapter0.marshal((Timestamp) null);
43         fail("Expecting exception: NullPointerException");
44       
45       } catch(NullPointerException e) {
46          //
47          // no message in exception (getMessage() returned null)
48          //
49          verifyException("org.openecomp.mso.requestsdb.adapter.TimestampXMLAdapter", e);
50       }
51   }
52
53   @Test(timeout = 4000)
54   public void test3()  throws Throwable  {
55       TimestampXMLAdapter timestampXMLAdapter0 = new TimestampXMLAdapter();
56       Timestamp timestamp0 = timestampXMLAdapter0.unmarshal((Long) null);
57       Long long0 = timestampXMLAdapter0.marshal(timestamp0);
58       assertEquals(0L, (long)long0);
59   }
60
61   @Test(timeout = 4000)
62   public void test4()  throws Throwable  {
63       TimestampXMLAdapter timestampXMLAdapter0 = new TimestampXMLAdapter();
64       Long long0 = new Long(497L);
65       Timestamp timestamp0 = timestampXMLAdapter0.unmarshal(long0);
66       Long long1 = timestampXMLAdapter0.marshal(timestamp0);
67       assertEquals(497L, (long)long1);
68   }
69 }