diff --git a/pom.xml b/pom.xml
index 890755f..6ce930b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
ch.sbb.polarion.extensions
ch.sbb.polarion.extension.generic
- 7.3.1
+ 7.4.0
ch.sbb.polarion.extension.excel-importer
@@ -75,6 +75,14 @@
${apache-poi.version}
provided
+
+
+ ch.sbb.polarion.extensions
+ ch.sbb.polarion.extension.generic.app
+ ${project.parent.version}
+ test-jar
+ test
+
diff --git a/src/test/java/ch/sbb/polarion/extension/excel_importer/settings/ExcelSheetMappingSettingsTest.java b/src/test/java/ch/sbb/polarion/extension/excel_importer/settings/ExcelSheetMappingSettingsTest.java
index e750b17..89a74c7 100644
--- a/src/test/java/ch/sbb/polarion/extension/excel_importer/settings/ExcelSheetMappingSettingsTest.java
+++ b/src/test/java/ch/sbb/polarion/extension/excel_importer/settings/ExcelSheetMappingSettingsTest.java
@@ -1,19 +1,15 @@
package ch.sbb.polarion.extension.excel_importer.settings;
+import ch.sbb.polarion.extension.generic.context.CurrentContextConfig;
+import ch.sbb.polarion.extension.generic.context.CurrentContextExtension;
import ch.sbb.polarion.extension.generic.exception.ObjectNotFoundException;
-import ch.sbb.polarion.extension.generic.rest.model.Context;
import ch.sbb.polarion.extension.generic.settings.GenericNamedSettings;
import ch.sbb.polarion.extension.generic.settings.SettingId;
import ch.sbb.polarion.extension.generic.settings.SettingsService;
-import ch.sbb.polarion.extension.generic.util.ContextUtils;
import ch.sbb.polarion.extension.generic.util.ScopeUtils;
import com.polarion.subterra.base.location.ILocation;
-import org.junit.jupiter.api.AfterEach;
-import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.Answers;
-import org.mockito.Mock;
import org.mockito.MockedStatic;
import org.mockito.junit.jupiter.MockitoExtension;
@@ -25,23 +21,10 @@
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
-@ExtendWith(MockitoExtension.class)
+@ExtendWith({MockitoExtension.class, CurrentContextExtension.class})
+@CurrentContextConfig("excel-importer")
class ExcelSheetMappingSettingsTest {
- @Mock(answer = Answers.RETURNS_DEEP_STUBS)
- MockedStatic contextUtils;
-
- @BeforeEach
- void setUp() {
- Context context = new Context("excel-importer");
- contextUtils.when(ContextUtils::getContext).thenReturn(context);
- }
-
- @AfterEach
- void tearDown() {
- contextUtils.close();
- }
-
@Test
void testSettingDoesNotExist() {
try (MockedStatic mockScopeUtils = mockStatic(ScopeUtils.class)) {