summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/devicemanager-onap/adapter-manager
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2022-11-15 15:35:41 -0500
committerDan Timoney <dtimoney@att.com>2022-11-15 20:36:16 +0000
commit8607135db7bf241e3643d008505c825f3990798d (patch)
tree85330156cd829232d2e536c3309023a5e6dd0ef0 /sdnr/wt/devicemanager-onap/adapter-manager
parentfa6dc19835ca40f32e7f9723aba73327010693be (diff)
Update to compile with Java 17
Updated to compile with Java 17 Issue-ID: CCSDK-3813 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: I9d2a8ea42893b1d3d95e0bbe3810de2a4e7b72ed
Diffstat (limited to 'sdnr/wt/devicemanager-onap/adapter-manager')
-rw-r--r--sdnr/wt/devicemanager-onap/adapter-manager/feature/pom.xml3
-rwxr-xr-xsdnr/wt/devicemanager-onap/adapter-manager/installer/pom.xml3
-rw-r--r--sdnr/wt/devicemanager-onap/adapter-manager/model/pom.xml3
-rwxr-xr-xsdnr/wt/devicemanager-onap/adapter-manager/pom.xml3
-rw-r--r--sdnr/wt/devicemanager-onap/adapter-manager/provider/pom.xml3
5 files changed, 5 insertions, 10 deletions
diff --git a/sdnr/wt/devicemanager-onap/adapter-manager/feature/pom.xml b/sdnr/wt/devicemanager-onap/adapter-manager/feature/pom.xml
index ef6f4d69c..93c640a92 100644
--- a/sdnr/wt/devicemanager-onap/adapter-manager/feature/pom.xml
+++ b/sdnr/wt/devicemanager-onap/adapter-manager/feature/pom.xml
@@ -22,14 +22,13 @@
~ ============LICENSE_END=======================================================
~
-->
-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onap.ccsdk.parent</groupId>
<artifactId>single-feature-parent</artifactId>
- <version>2.5.0</version>
+ <version>2.5.1-SNAPSHOT</version>
<relativePath/>
</parent>
diff --git a/sdnr/wt/devicemanager-onap/adapter-manager/installer/pom.xml b/sdnr/wt/devicemanager-onap/adapter-manager/installer/pom.xml
index 040a1f1b5..047a7bb6a 100755
--- a/sdnr/wt/devicemanager-onap/adapter-manager/installer/pom.xml
+++ b/sdnr/wt/devicemanager-onap/adapter-manager/installer/pom.xml
@@ -22,14 +22,13 @@
~ ============LICENSE_END=======================================================
~
-->
-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onap.ccsdk.parent</groupId>
<artifactId>odlparent-lite</artifactId>
- <version>2.5.0</version>
+ <version>2.5.1-SNAPSHOT</version>
<relativePath/>
</parent>
diff --git a/sdnr/wt/devicemanager-onap/adapter-manager/model/pom.xml b/sdnr/wt/devicemanager-onap/adapter-manager/model/pom.xml
index c37692f08..8fbab13d4 100644
--- a/sdnr/wt/devicemanager-onap/adapter-manager/model/pom.xml
+++ b/sdnr/wt/devicemanager-onap/adapter-manager/model/pom.xml
@@ -22,14 +22,13 @@
~ ============LICENSE_END=======================================================
~
-->
-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onap.ccsdk.parent</groupId>
<artifactId>binding-parent</artifactId>
- <version>2.5.0</version>
+ <version>2.5.1-SNAPSHOT</version>
<relativePath/>
</parent>
diff --git a/sdnr/wt/devicemanager-onap/adapter-manager/pom.xml b/sdnr/wt/devicemanager-onap/adapter-manager/pom.xml
index a401415b0..a080fc91b 100755
--- a/sdnr/wt/devicemanager-onap/adapter-manager/pom.xml
+++ b/sdnr/wt/devicemanager-onap/adapter-manager/pom.xml
@@ -22,14 +22,13 @@
~ ============LICENSE_END=======================================================
~
-->
-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onap.ccsdk.parent</groupId>
<artifactId>odlparent-lite</artifactId>
- <version>2.5.0</version>
+ <version>2.5.1-SNAPSHOT</version>
<relativePath/>
</parent>
diff --git a/sdnr/wt/devicemanager-onap/adapter-manager/provider/pom.xml b/sdnr/wt/devicemanager-onap/adapter-manager/provider/pom.xml
index b4a9623d5..4b40240f7 100644
--- a/sdnr/wt/devicemanager-onap/adapter-manager/provider/pom.xml
+++ b/sdnr/wt/devicemanager-onap/adapter-manager/provider/pom.xml
@@ -22,14 +22,13 @@
~ ============LICENSE_END=======================================================
~
-->
-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onap.ccsdk.parent</groupId>
<artifactId>binding-parent</artifactId>
- <version>2.5.0</version>
+ <version>2.5.1-SNAPSHOT</version>
<relativePath/>
</parent>
span class="nx">owner = {}; beforeAll(function() { usersList = UserFactory.buildList(3); userInfo = usersList[0]; owner = usersList[0]; contributor = usersList[1]; contributorToAdd = usersList[2]; versionsPage = { permissions: { owner: owner, contributors: [contributor], viewers: [] } }; }); it('should mapper exist', () => { expect(mapStateToProps).toBeTruthy(); }); it('should mapper return basic permissions page data', () => { const obj = {versionsPage, users: {usersList, userInfo}}; const result = mapStateToProps(obj); result.itemId = globalItemId; expect(result.owner).toBeTruthy(); expect(result.itemUsers).toBeTruthy(); expect(result.userInfo).toBeTruthy(); expect(result.itemId).toBeTruthy(); expect(result.users).toBeTruthy(); }); it('permission manager basic view', () => { const obj = {versionsPage, users: {usersList, userInfo}}; const params = mapStateToProps(obj); let permissionsView = TestUtils.renderIntoDocument(<PermissionsManager {...params}/>); expect(permissionsView).toBeTruthy(); }); it('permisssion manager onChange contributors test', () => { const obj = {versionsPage, users: {usersList, userInfo}}; const params = mapStateToProps(obj); params.itemId = globalItemId; let permissionsView = TestUtils.renderIntoDocument(<PermissionsManager {...params}/>); expect(permissionsView).toBeTruthy(); const userToAdd = { value: contributorToAdd.userId, label: contributorToAdd.fullName }; let itemUsers = [{...userToAdd}]; permissionsView.onChangeItemUsers({itemUsers}); expect(permissionsView.state.itemUsers[0].userId).toEqual(userToAdd.value); }); it('permisssion manager onSave contributors test', () => { const obj = {versionsPage, users: {usersList, userInfo}}; let params = mapStateToProps(obj); params.itemId = globalItemId; const userToAdd = { value: contributorToAdd.userId, label: contributorToAdd.fullName }; let itemUsers = [{...userToAdd}]; params.onSubmit = ({itemId, addedUsersIds, removedUsersIds, allUsers, owner}) => { expect(itemId).toEqual(globalItemId); expect(addedUsersIds[0]).toEqual(contributorToAdd.userId); expect(removedUsersIds[0]).toEqual(contributor.userId); expect(allUsers).toEqual(usersList); expect(owner).toEqual(owner); }; let permissionsView = TestUtils.renderIntoDocument(<PermissionsManager {...params}/>); expect(permissionsView).toBeTruthy(); permissionsView.onChangeItemUsers({itemUsers}); permissionsView.onsaveItemUsers(); }); });