Latest dependency versions upgraded.
Issue-ID: NONRTRIC-1080
Change-Id: I423e7e32464dd815ba7591debb296603cdc6e587
Signed-off-by: aravind.est <aravindhan.a@est.tech>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
<dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpcore</artifactId>
+ <groupId>org.apache.httpcomponents.core5</groupId>
+ <artifactId>httpcore5</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2023 Nordix Foundation.
- * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. 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.
import java.util.stream.Collectors;
import lombok.AccessLevel;
import lombok.Getter;
-import org.apache.http.HttpStatus;
+import org.apache.hc.core5.http.HttpStatus;
import org.onap.policy.clamp.acm.participant.intermediary.api.ParticipantIntermediaryApi;
import org.onap.policy.clamp.acm.participant.intermediary.api.impl.AcElementListenerV1;
import org.onap.policy.clamp.models.acm.concepts.AcElementDeploy;
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2023 Nordix Foundation.
+ * Copyright (C) 2023-2025 OpenInfra Foundation Europe. 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.
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import org.oransc.participant.dme.exception.DmeException;
-import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.http.ResponseEntity;
+import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.test.context.junit.jupiter.SpringExtension;
@ExtendWith(SpringExtension.class)
class AcA1PmsClientTest {
- @MockBean
+ @MockitoBean
DataProducerRegistrationApiClient dataProducerRegistrationApiClient;
- @MockBean
+ @MockitoBean
DataConsumerApiClient dataConsumerApiClient;
- @MockBean
+ @MockitoBean
AcDmeClient acDmeClient;
ObjectMapper objectMapper = new ObjectMapper();
private static Stream<Arguments> getDeleteDataConsumers() {
return Stream.of(Arguments.of(Set.of("consumer1")), Arguments.of(Set.of()));
}
+
private static Stream<Arguments> getInfoTypes() {
return Stream.of(Arguments.of(Map.of("infotype1", "{}")), Arguments.of(Map.of()));
}
* O-RAN-SC
* %%
* Copyright (C) 2023 Nordix Foundation
-* Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
+* Copyright (C) 2023-2025 OpenInfra Foundation Europe. 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.
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
- <version>3.3.4</version>
+ <version>3.5.3</version>
<relativePath/>
</parent>
<groupId>org.o-ran-sc.nonrtric.plt</groupId>
</repositories>
<properties>
<java.version>17</java.version>
- <openapi.maven.version>7.3.0</openapi.maven.version>
- <docker-maven-plugin>0.45.0</docker-maven-plugin>
- <jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
+ <openapi.maven.version>7.14.0</openapi.maven.version>
+ <docker-maven-plugin>0.46.0</docker-maven-plugin>
+ <jacoco-maven-plugin.version>0.8.13</jacoco-maven-plugin.version>
<onap.acm.models.version>8.0.1</onap.acm.models.version>
<openapi.jackson.databind.nullable.version>0.2.6</openapi.jackson.databind.nullable.version>
</properties>
* O-RAN-SC
* %%
* Copyright (C) 2023 Nordix Foundation
-* Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved
+* Copyright (C) 2023-2025 OpenInfra Foundation Europe. 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.
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
- <version>3.3.5</version>
+ <version>3.5.3</version>
</parent>
<groupId>org.o-ran-sc.nonrtric.plt</groupId>
<artifactId>rappmanager</artifactId>
</repositories>
<properties>
<java.version>17</java.version>
- <openapi.maven.version>7.3.0</openapi.maven.version>
- <docker-maven-plugin>0.45.0</docker-maven-plugin>
- <jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
+ <openapi.maven.version>7.14.0</openapi.maven.version>
+ <docker-maven-plugin>0.46.0</docker-maven-plugin>
+ <jacoco-maven-plugin.version>0.8.13</jacoco-maven-plugin.version>
<onap.acm.models.version>8.0.0</onap.acm.models.version>
<openapi.jackson.databind.nullable.version>0.2.6</openapi.jackson.databind.nullable.version>
- <spring.statemachine.version>4.0.0</spring.statemachine.version>
- <spring.context.version>6.1.14</spring.context.version>
- <javax.validation.api.version>2.0.1.Final</javax.validation.api.version>
- <javax.annotation.api.version>1.3.2</javax.annotation.api.version>
- <javax.servlet.api.version>3.0-alpha-1</javax.servlet.api.version>
- <io.swagger.version>2.2.23</io.swagger.version>
+ <spring.statemachine.version>4.0.1</spring.statemachine.version>
+ <spring.context.version>6.2.8</spring.context.version>
+ <jakarta.validation.api.version>3.1.1</jakarta.validation.api.version>
+ <jakarta.annotation.api.version>3.0.0</jakarta.annotation.api.version>
+ <jakarta.servlet.api.version>6.1.0</jakarta.servlet.api.version>
+ <io.swagger.version>2.2.34</io.swagger.version>
<slf4j.version>2.1.0-alpha1</slf4j.version>
- <apache.httpcore.version>4.4.16</apache.httpcore.version>
- <exec-maven-plugin.version>3.4.1</exec-maven-plugin.version>
+ <apache.httpcore.version>5.3.4</apache.httpcore.version>
+ <exec-maven-plugin.version>3.5.1</exec-maven-plugin.version>
<copy-resources-maven-plugin.version>3.3.1</copy-resources-maven-plugin.version>
<apache.compress.version>1.27.1</apache.compress.version>
- <guava.version>33.3.0-jre</guava.version>
+ <guava.version>33.4.8-jre</guava.version>
</properties>
<build>
<plugins>
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
+import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
import org.springframework.test.web.client.ExpectedCount;
import org.springframework.test.web.client.MockRestServiceServer;
import org.springframework.web.client.RestTemplate;
class AcmDeployerTest {
MockRestServiceServer mockServer;
- @SpyBean
+ @MockitoSpyBean
AcmDeployer acmDeployer;
@Autowired
RestTemplate restTemplate;
@Autowired
ACMConfiguration acmConfiguration;
- @SpyBean
+ @MockitoSpyBean
RappInstanceStateMachine rappInstanceStateMachine;
@Autowired
RappCsarConfigurationHandler rappCsarConfigurationHandler;
</dependency>
<!-- Bean Validation API support -->
<dependency>
- <groupId>javax.validation</groupId>
- <artifactId>validation-api</artifactId>
- <version>${javax.validation.api.version}</version>
+ <groupId>jakarta.validation</groupId>
+ <artifactId>jakarta.validation-api</artifactId>
+ <version>${jakarta.validation.api.version}</version>
</dependency>
<dependency>
- <groupId>javax.annotation</groupId>
- <artifactId>javax.annotation-api</artifactId>
- <version>${javax.annotation.api.version}</version>
+ <groupId>jakarta.annotation</groupId>
+ <artifactId>jakarta.annotation-api</artifactId>
+ <version>${jakarta.annotation.api.version}</version>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<version>${io.swagger.version}</version>
</dependency>
<dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>${javax.servlet.api.version}</version>
+ <groupId>jakarta.servlet</groupId>
+ <artifactId>jakarta.servlet-api</artifactId>
+ <version>${jakarta.servlet.api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
/*
* ============LICENSE_START======================================================================
- * Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2023-2025 OpenInfra Foundation Europe. 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.
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.http.MediaType;
import org.springframework.mock.web.MockMultipartFile;
+import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
@Autowired
private RappCacheService rappCacheService;
- @MockBean
+ @MockitoBean
AcmDeployer acmDeployer;
- @MockBean
+ @MockitoBean
DmeDeployer dmeDeployer;
- @MockBean
+ @MockitoBean
SmeLifecycleManager smeLifecycleManager;
private final String validRappFile = "valid-rapp-package.csar";
/*
* ============LICENSE_START======================================================================
- * Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2023-2025 OpenInfra Foundation Europe. 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.
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.http.MediaType;
+import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
@Autowired
private RappInstanceStateMachine rappInstanceStateMachine;
- @MockBean
+ @MockitoBean
AcmDeployer acmDeployer;
- @MockBean
+ @MockitoBean
SmeDeployer smeDeployer;
- @MockBean
+ @MockitoBean
DmeDeployer dmeDeployer;
- @MockBean
+ @MockitoBean
SmeLifecycleManager smeLifecycleManager;
private final String validRappFile = "valid-rapp-package.csar";
import org.oransc.rappmanager.sme.service.SmeLifecycleManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.MockBean;
-import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
+import org.springframework.test.context.bean.override.mockito.MockitoBean;
+import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
import org.springframework.test.web.client.ExpectedCount;
import org.springframework.test.web.client.MockRestServiceServer;
import org.springframework.web.client.RestTemplate;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
class DeploymentArtifactsServiceTest {
- @SpyBean
+ @MockitoSpyBean
DeploymentArtifactsService deploymentArtifactsService;
@Autowired
RestTemplate restTemplate;
@Autowired
RappCsarConfigurationHandler rappCsarConfigurationHandler;
- @MockBean
+ @MockitoBean
SmeLifecycleManager smeLifecycleManager;
MockRestServiceServer mockServer;
/*-
* ============LICENSE_START======================================================================
* Copyright (C) 2023 Nordix Foundation. All rights reserved.
- * Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2023-2025 OpenInfra Foundation Europe. 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.
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.http.HttpStatus;
+import org.springframework.test.context.bean.override.mockito.MockitoBean;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@AutoConfigureMockMvc
@Autowired
RappService rappService;
- @MockBean
+ @MockitoBean
AcmDeployer acmDeployer;
- @MockBean
+ @MockitoBean
SmeDeployer smeDeployer;
- @MockBean
+ @MockitoBean
DmeDeployer dmeDeployer;
- @MockBean
+ @MockitoBean
DeploymentArtifactsService deploymentArtifactsService;
- @MockBean
+ @MockitoBean
SmeLifecycleManager smeLifecycleManager;
@Autowired
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
+import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
import org.springframework.test.web.client.ExpectedCount;
import org.springframework.test.web.client.MockRestServiceServer;
import org.springframework.web.client.RestTemplate;
class DmeDeployerTest {
MockRestServiceServer mockServer;
- @SpyBean
+ @MockitoSpyBean
DmeDeployer dmeDeployer;
@Autowired
RestTemplate restTemplate;
<scope>test</scope>
</dependency>
<dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpcore</artifactId>
+ <groupId>org.apache.httpcomponents.core5</groupId>
+ <artifactId>httpcore5</artifactId>
<version>${apache.httpcore.version}</version>
<scope>test</scope>
</dependency>
/*-
* ============LICENSE_START======================================================================
* Copyright (C) 2023 Nordix Foundation. All rights reserved.
- * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. 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.
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
@SpringBootTest
@EnableConfigurationProperties
classes = {ObjectMapper.class, RappsEnvironmentConfiguration.class, RappCsarConfigurationHandler.class})
class RappCsarConfigurationHandlerTest {
- @SpyBean
+ @MockitoSpyBean
RappCsarConfigurationHandler rappCsarConfigurationHandler;
@Autowired
RappsEnvironmentConfiguration rappsEnvironmentConfiguration;
/*
* ============LICENSE_START======================================================================
- * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. 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.
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
-import org.apache.http.entity.ContentType;
+import org.apache.hc.core5.http.ContentType;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.NullSource;
import org.oransc.rappmanager.models.exception.RappValidationException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.http.HttpStatus;
import org.springframework.mock.web.MockMultipartFile;
import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
import org.springframework.web.multipart.MultipartFile;
@SpringBootTest
@Autowired
ArtifactDefinitionValidator artifactDefinitionValidator;
- @SpyBean
+ @MockitoSpyBean
RappValidationUtils rappValidationUtils;
String validCsarFileLocation = "src/test/resources/";
String validRappFile = "valid-rapp-package.csar";
/*
* ============LICENSE_START======================================================================
- * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. 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.
import java.io.FileInputStream;
import java.io.IOException;
import java.util.UUID;
-import org.apache.http.entity.ContentType;
+import org.apache.hc.core5.http.ContentType;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.NullSource;
import org.oransc.rappmanager.models.rapp.Rapp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.cache.CacheManager;
import org.springframework.http.HttpStatus;
import org.springframework.mock.web.MockMultipartFile;
import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
import org.springframework.web.multipart.MultipartFile;
@SpringBootTest
@Autowired
AsdDescriptorValidator asdDescriptorValidator;
- @SpyBean
+ @MockitoSpyBean
RappValidationUtils rappValidationUtils;
@Autowired
RappCacheService rappCacheService;
/*
* ============LICENSE_START======================================================================
- * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. 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.
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
-import org.apache.http.entity.ContentType;
+import org.apache.hc.core5.http.ContentType;
import org.junit.jupiter.api.Test;
import org.oransc.rappmanager.models.configuration.RappsEnvironmentConfiguration;
import org.oransc.rappmanager.models.csar.RappCsarConfigurationHandler;
/*
* ============LICENSE_START======================================================================
- * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. 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.
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
-import org.apache.http.entity.ContentType;
+import org.apache.hc.core5.http.ContentType;
import org.junit.jupiter.api.Test;
import org.oransc.rappmanager.models.exception.RappValidationException;
import org.springframework.beans.factory.annotation.Autowired;
/*
* ============LICENSE_START======================================================================
- * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. 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.
import java.io.FileInputStream;
import java.io.IOException;
import java.util.stream.Stream;
-import org.apache.http.entity.ContentType;
+import org.apache.hc.core5.http.ContentType;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
/*
* ============LICENSE_START======================================================================
- * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. 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.
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
-import org.apache.http.entity.ContentType;
+import org.apache.hc.core5.http.ContentType;
import org.junit.jupiter.api.Test;
import org.oransc.rappmanager.models.configuration.RappsEnvironmentConfiguration;
import org.oransc.rappmanager.models.csar.RappCsarConfigurationHandler;
<scope>test</scope>
</dependency>
<dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpcore</artifactId>
+ <groupId>org.apache.httpcomponents.core5</groupId>
+ <artifactId>httpcore5</artifactId>
<version>${apache.httpcore.version}</version>
<scope>test</scope>
</dependency>
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
+import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
import org.springframework.test.web.client.ExpectedCount;
import org.springframework.test.web.client.MockRestServiceServer;
import org.springframework.web.client.RestTemplate;
MockRestServiceServer mockServer;
@Autowired
- @SpyBean
+ @MockitoSpyBean
SmeDeployer smeDeployer;
@Autowired
RestTemplate restTemplate;
/*-
* ============LICENSE_START======================================================================
* Copyright (C) 2023 Nordix Foundation. All rights reserved.
- * Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2023-2025 OpenInfra Foundation Europe. 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.
import org.oransc.rappmanager.sme.provider.data.APIProviderEnrolmentDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.mock.mockito.MockBean;
-import org.springframework.boot.test.mock.mockito.SpyBean;
+import org.springframework.test.context.bean.override.mockito.MockitoBean;
+import org.springframework.test.context.bean.override.mockito.MockitoSpyBean;
@SpringBootTest(classes = SmeLifecycleManager.class)
class SmeLifecycleManagerTest {
@Autowired
- @MockBean
+ @MockitoBean
SmeDeployer smeDeployer;
@Autowired
- @SpyBean
+ @MockitoSpyBean
SmeLifecycleManager smeLifecycleManager;
@Test