aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/ServiceOperationTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/ServiceOperationTest.java')
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/ServiceOperationTest.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/ServiceOperationTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/ServiceOperationTest.java
index 56fd4bb8..268bb85c 100644
--- a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/ServiceOperationTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/ServiceOperationTest.java
@@ -1,6 +1,9 @@
/**
* Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.
*
+ * ================================================================================
+ * Modifications Copyright (C) 2020 IBM.
+ * ================================================================================
* 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
@@ -40,6 +43,8 @@ import org.hibernate.Transaction;
import mockit.Mock;
import mockit.MockUp;
+import static org.junit.Assert.assertEquals;
+
public class ServiceOperationTest {
@Before
@@ -53,7 +58,10 @@ public class ServiceOperationTest {
@Test
public void testServiceOperation() throws Exception {
ServiceOperation so = new ServiceOperation();
- so.setService(null);
- so.getService();
+ Operation o = new Operation();
+ o.setServiceId("123");
+ o.setOperationId("123");
+ so.setService(o);
+ assertEquals(o,so.getService());
}
}