From 0d7eeddc87515788febb542513de48b1a170189e Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Wed, 2 Oct 2024 19:15:37 +0100 Subject: [PATCH] fix: Fix Portal Cache API usage in Test context - MEED-7574 - Meeds-io/MIPs#151 --- .../exoplatform/migration/NavigationNodesMigrationTest.java | 2 -- .../migration/PortalConfigPermissionMigrationTest.java | 6 ------ 2 files changed, 8 deletions(-) diff --git a/data-upgrade-navigations/src/test/java/org/exoplatform/migration/NavigationNodesMigrationTest.java b/data-upgrade-navigations/src/test/java/org/exoplatform/migration/NavigationNodesMigrationTest.java index 643692f76..f56b6b78e 100644 --- a/data-upgrade-navigations/src/test/java/org/exoplatform/migration/NavigationNodesMigrationTest.java +++ b/data-upgrade-navigations/src/test/java/org/exoplatform/migration/NavigationNodesMigrationTest.java @@ -166,8 +166,6 @@ protected void createSite(SiteType type, String siteName) throws Exception { null, null, Collections.emptyList(), - Collections.emptyList(), - Collections.emptyList(), Collections.emptyList()); PortalData portal = new PortalData(null, siteName, diff --git a/data-upgrade-navigations/src/test/java/org/exoplatform/migration/PortalConfigPermissionMigrationTest.java b/data-upgrade-navigations/src/test/java/org/exoplatform/migration/PortalConfigPermissionMigrationTest.java index a08d16ab4..ee377d5b0 100644 --- a/data-upgrade-navigations/src/test/java/org/exoplatform/migration/PortalConfigPermissionMigrationTest.java +++ b/data-upgrade-navigations/src/test/java/org/exoplatform/migration/PortalConfigPermissionMigrationTest.java @@ -1,7 +1,6 @@ package org.exoplatform.migration; import org.exoplatform.commons.persistence.impl.EntityManagerService; -import org.exoplatform.commons.upgrade.UpgradePluginExecutionContext; import org.exoplatform.commons.utils.CommonsUtils; import org.exoplatform.component.test.AbstractKernelTest; import org.exoplatform.component.test.ConfigurationUnit; @@ -11,14 +10,11 @@ import org.exoplatform.container.PortalContainer; import org.exoplatform.container.component.RequestLifeCycle; import org.exoplatform.container.xml.InitParams; -import org.exoplatform.container.xml.ValueParam; import org.exoplatform.portal.config.model.PortalConfig; -import org.exoplatform.portal.jdbc.entity.NodeEntity; import org.exoplatform.portal.jdbc.entity.PermissionEntity; import org.exoplatform.portal.jdbc.entity.SiteEntity; import org.exoplatform.portal.mop.SiteKey; import org.exoplatform.portal.mop.SiteType; -import org.exoplatform.portal.mop.dao.NodeDAO; import org.exoplatform.portal.mop.dao.PermissionDAO; import org.exoplatform.portal.mop.dao.SiteDAO; import org.exoplatform.portal.mop.navigation.*; @@ -112,8 +108,6 @@ protected void createSite(SiteType type, String siteName) throws Exception { null, null, Collections.emptyList(), - Collections.emptyList(), - Collections.emptyList(), Collections.emptyList()); PortalData portal = new PortalData(null, siteName,