Added oparent to sdc main
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / auditing / model / CommonAuditDataTest.java
index eb5ee57..153618d 100644 (file)
@@ -1,3 +1,23 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
 package org.openecomp.sdc.be.resources.data.auditing.model;
 
 import org.junit.Test;
@@ -6,13 +26,9 @@ import org.openecomp.sdc.be.resources.data.auditing.model.CommonAuditData.Builde
 public class CommonAuditDataTest {
 
        private CommonAuditData createTestSubject() {
-               Builder newBuilder = CommonAuditData.newBuilder();
-               return newBuilder.build();
+               return CommonAuditData.newBuilder().build();
        }
-       
-       
 
-       
        @Test
        public void testGetStatus() throws Exception {
                CommonAuditData testSubject;
@@ -23,7 +39,6 @@ public class CommonAuditDataTest {
                result = testSubject.getStatus();
        }
 
-       
        @Test
        public void testGetDescription() throws Exception {
                CommonAuditData testSubject;
@@ -34,7 +49,6 @@ public class CommonAuditDataTest {
                result = testSubject.getDescription();
        }
 
-       
        @Test
        public void testGetRequestId() throws Exception {
                CommonAuditData testSubject;
@@ -45,7 +59,6 @@ public class CommonAuditDataTest {
                result = testSubject.getRequestId();
        }
 
-       
        @Test
        public void testGetServiceInstanceId() throws Exception {
                CommonAuditData testSubject;
@@ -56,7 +69,6 @@ public class CommonAuditDataTest {
                result = testSubject.getServiceInstanceId();
        }
 
-       
        @Test
        public void testSetServiceInstanceId() throws Exception {
                CommonAuditData testSubject;
@@ -67,7 +79,6 @@ public class CommonAuditDataTest {
                testSubject.setServiceInstanceId(serviceInstanceId);
        }
 
-       
        @Test
        public void testNewBuilder() throws Exception {
                Builder result;
@@ -75,4 +86,41 @@ public class CommonAuditDataTest {
                // default test
                result = CommonAuditData.newBuilder();
        }
-}
\ No newline at end of file
+       
+       @Test
+       public void testDescription() throws Exception {
+               Builder result;
+
+               // default test
+               result = CommonAuditData.newBuilder();
+               result.description("mock");
+       }
+       
+       @Test
+       public void testStatus() throws Exception {
+               Builder result;
+
+               // default test
+               result = CommonAuditData.newBuilder();
+               result.status(1);
+               result.status("mock");
+       }
+       
+       @Test
+       public void testRequestId() throws Exception {
+               Builder result;
+
+               // default test
+               result = CommonAuditData.newBuilder();
+               result.requestId("mock");
+       }
+       
+       @Test
+       public void testServiceInstanceId() throws Exception {
+               Builder result;
+
+               // default test
+               result = CommonAuditData.newBuilder();
+               result.serviceInstanceId("mock");
+       }
+}