aboutsummaryrefslogtreecommitdiffstats
path: root/gui-editors/gui-editor-apex/src/test
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-07-16 10:04:54 -0400
committerJim Hahn <jrh3@att.com>2021-07-16 10:05:16 -0400
commitefaa2f3f7d22a5096625b51643f707b471569d78 (patch)
tree58f44f24cb34842ebb1a2b30a126894b71a5c5b3 /gui-editors/gui-editor-apex/src/test
parent71d6358a8f787c5d2688a485d42ff9514dc58a56 (diff)
Use lombok annotations in gui
Issue-ID: POLICY-3395 Change-Id: I7820877522875a3caf47e3b7409eb4f7fb15ba2b Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'gui-editors/gui-editor-apex/src/test')
-rw-r--r--gui-editors/gui-editor-apex/src/test/java/org/onap/policy/gui/editors/apex/rest/handling/RestSessionTest.java2
-rw-r--r--gui-editors/gui-editor-apex/src/test/java/org/onap/policy/gui/editors/apex/rest/handling/bean/DummyBeanBase.java7
2 files changed, 5 insertions, 4 deletions
diff --git a/gui-editors/gui-editor-apex/src/test/java/org/onap/policy/gui/editors/apex/rest/handling/RestSessionTest.java b/gui-editors/gui-editor-apex/src/test/java/org/onap/policy/gui/editors/apex/rest/handling/RestSessionTest.java
index 8717198..b2158ce 100644
--- a/gui-editors/gui-editor-apex/src/test/java/org/onap/policy/gui/editors/apex/rest/handling/RestSessionTest.java
+++ b/gui-editors/gui-editor-apex/src/test/java/org/onap/policy/gui/editors/apex/rest/handling/RestSessionTest.java
@@ -1,6 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2021 Nordix Foundation.
+ * Modifications Copyright (C) 2021 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.
@@ -100,6 +101,7 @@ public class RestSessionTest {
final var apexModel = restSession.getApexModel();
assertThat(apexApiResult.isOk()).isTrue();
assertThat(original).isNull();
+ assertThat(apexModelEdited).isNotNull();
assertThat(apexModel).isNotNull();
}
diff --git a/gui-editors/gui-editor-apex/src/test/java/org/onap/policy/gui/editors/apex/rest/handling/bean/DummyBeanBase.java b/gui-editors/gui-editor-apex/src/test/java/org/onap/policy/gui/editors/apex/rest/handling/bean/DummyBeanBase.java
index edb240b..79092a7 100644
--- a/gui-editors/gui-editor-apex/src/test/java/org/onap/policy/gui/editors/apex/rest/handling/bean/DummyBeanBase.java
+++ b/gui-editors/gui-editor-apex/src/test/java/org/onap/policy/gui/editors/apex/rest/handling/bean/DummyBeanBase.java
@@ -2,6 +2,7 @@
* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
* Modifications Copyright (C) 2020 Nordix Foundation.
+ * Modifications Copyright (C) 2021 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.
@@ -22,6 +23,7 @@
package org.onap.policy.gui.editors.apex.rest.handling.bean;
import javax.xml.bind.annotation.XmlType;
+import lombok.Getter;
/**
* The Event Bean.
@@ -29,6 +31,7 @@ import javax.xml.bind.annotation.XmlType;
@XmlType
public class DummyBeanBase extends BeanBase {
private String name = null;
+ @Getter
private String version = null;
private String field1 = null;
private int field2 = 0;
@@ -39,10 +42,6 @@ public class DummyBeanBase extends BeanBase {
return field1;
}
- public String getVersion() {
- return version;
- }
-
public int getField2() {
field3 = field2;
return field3;