summaryrefslogtreecommitdiffstats
path: root/components/slice-analysis-ms/src/test/java/org/onap/slice/analysis/ms/data/beans/PerformanceNotificationsTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'components/slice-analysis-ms/src/test/java/org/onap/slice/analysis/ms/data/beans/PerformanceNotificationsTest.java')
-rw-r--r--components/slice-analysis-ms/src/test/java/org/onap/slice/analysis/ms/data/beans/PerformanceNotificationsTest.java32
1 files changed, 15 insertions, 17 deletions
diff --git a/components/slice-analysis-ms/src/test/java/org/onap/slice/analysis/ms/data/beans/PerformanceNotificationsTest.java b/components/slice-analysis-ms/src/test/java/org/onap/slice/analysis/ms/data/beans/PerformanceNotificationsTest.java
index e8654003..e55fba74 100644
--- a/components/slice-analysis-ms/src/test/java/org/onap/slice/analysis/ms/data/beans/PerformanceNotificationsTest.java
+++ b/components/slice-analysis-ms/src/test/java/org/onap/slice/analysis/ms/data/beans/PerformanceNotificationsTest.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* slice-analysis-ms
* ================================================================================
- * Copyright (C) 2020 Wipro Limited.
+ * Copyright (C) 2020-2021 Wipro Limited.
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,26 +18,24 @@
* ============LICENSE_END=========================================================
*
*******************************************************************************/
-
package org.onap.slice.analysis.ms.data.beans;
-
import static org.junit.Assert.*;
-
import java.sql.Timestamp;
-
import org.junit.Test;
-
public class PerformanceNotificationsTest {
-
private Timestamp createdAt;
-
- @Test
- public void test() {
-
- PerformanceNotifications performanceNotifications = new PerformanceNotifications();
- performanceNotifications.setNotification("notification");
- performanceNotifications.setCreatedAt(createdAt);
- assertEquals("notification", performanceNotifications.getNotification());
- assertEquals(createdAt, performanceNotifications.getCreatedAt()); }
-
+ @Test
+ public void methodTest() {
+ PerformanceNotifications performanceNotifications = new PerformanceNotifications();
+ performanceNotifications.setNotification("notification");
+ performanceNotifications.setCreatedAt(createdAt);
+ assertEquals("notification", performanceNotifications.getNotification());
+ assertEquals(createdAt, performanceNotifications.getCreatedAt());
+ }
+ @Test
+ public void constructorTest(){
+ PerformanceNotifications performanceNotification = new PerformanceNotifications("notifications",createdAt);
+ assertEquals("notifications", performanceNotification.getNotification());
+ assertEquals(createdAt, performanceNotification.getCreatedAt());
+}
}