summaryrefslogtreecommitdiffstats
path: root/intentanalysis/src/test/java
diff options
context:
space:
mode:
authorhekeguang <hekeguang@chinamobile.com>2022-10-08 10:10:04 +0800
committerhekeguang <hekeguang@chinamobile.com>2022-10-08 10:10:22 +0800
commit337b5ae680d3a1a37eba96b05a860f95dada7fe4 (patch)
treec449bf62602a483439ad563c1cb08a3a40107643 /intentanalysis/src/test/java
parentcaa0bcfe1e08d0ed1e795255e3708b7bedfdfa9f (diff)
Modify intent definition code.
Issue-ID: USECASEUI-696 Change-Id: I4b63fa0820405699e74765612fbb33b3ea1293ad Signed-off-by: hekeguang <hekeguang@chinamobile.com>
Diffstat (limited to 'intentanalysis/src/test/java')
-rw-r--r--intentanalysis/src/test/java/org/onap/usecaseui/intentanalysis/service/ExpectationServiceTest.java2
-rw-r--r--intentanalysis/src/test/java/org/onap/usecaseui/intentanalysis/service/IntentServiceTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/intentanalysis/src/test/java/org/onap/usecaseui/intentanalysis/service/ExpectationServiceTest.java b/intentanalysis/src/test/java/org/onap/usecaseui/intentanalysis/service/ExpectationServiceTest.java
index 265c097..4d029c1 100644
--- a/intentanalysis/src/test/java/org/onap/usecaseui/intentanalysis/service/ExpectationServiceTest.java
+++ b/intentanalysis/src/test/java/org/onap/usecaseui/intentanalysis/service/ExpectationServiceTest.java
@@ -47,7 +47,7 @@ class ExpectationServiceTest extends AbstractJUnit4SpringContextTests {
Expectation expectation = new Expectation();
ExpectationObject object = new ExpectationObject();
- object.setObjectType(ObjectType.valueOf("OBJECT1"));
+ object.setObjectType(ObjectType.valueOf("SLICING"));
object.setObjectInstance("objectInstance");
Condition targetCondition = new Condition();
diff --git a/intentanalysis/src/test/java/org/onap/usecaseui/intentanalysis/service/IntentServiceTest.java b/intentanalysis/src/test/java/org/onap/usecaseui/intentanalysis/service/IntentServiceTest.java
index ace1683..a1a31de 100644
--- a/intentanalysis/src/test/java/org/onap/usecaseui/intentanalysis/service/IntentServiceTest.java
+++ b/intentanalysis/src/test/java/org/onap/usecaseui/intentanalysis/service/IntentServiceTest.java
@@ -76,7 +76,7 @@ public class IntentServiceTest extends AbstractJUnit4SpringContextTests {
target1.setTargetConditions(targetConditionList);
List<ExpectationTarget> expectationTargetList = new ArrayList<>();
expectationTargetList.add(target1);
- object1.setObjectType(ObjectType.valueOf("OBJECT1"));
+ object1.setObjectType(ObjectType.valueOf("SLICING"));
object1.setObjectInstance("objectInstance");
expectation1.setExpectationId("expectationId");
expectation1.setExpectationName("expectationName");