From dc8217eb6961c3b778cd1f8c2732075c54119a4e Mon Sep 17 00:00:00 2001 From: Riccardo Grandi Date: Fri, 28 Jul 2023 17:36:33 +0200 Subject: [PATCH] AAE-14357 - Fix tests --- .../ProcessInstanceTasksControllerImplIT.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/activiti-cloud-runtime-bundle-service/activiti-cloud-services-runtime-bundle/activiti-cloud-services-rest-impl/src/test/java/org/activiti/cloud/services/rest/controllers/ProcessInstanceTasksControllerImplIT.java b/activiti-cloud-runtime-bundle-service/activiti-cloud-services-runtime-bundle/activiti-cloud-services-rest-impl/src/test/java/org/activiti/cloud/services/rest/controllers/ProcessInstanceTasksControllerImplIT.java index 8c0cdbd1052..c7cbf44c08e 100644 --- a/activiti-cloud-runtime-bundle-service/activiti-cloud-services-runtime-bundle/activiti-cloud-services-rest-impl/src/test/java/org/activiti/cloud/services/rest/controllers/ProcessInstanceTasksControllerImplIT.java +++ b/activiti-cloud-runtime-bundle-service/activiti-cloud-services-runtime-bundle/activiti-cloud-services-rest-impl/src/test/java/org/activiti/cloud/services/rest/controllers/ProcessInstanceTasksControllerImplIT.java @@ -18,7 +18,6 @@ import static org.activiti.cloud.services.rest.controllers.TaskSamples.buildDefaultAssignedTask; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.ArgumentMatchers.any; -import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; @@ -37,7 +36,6 @@ import org.activiti.cloud.services.events.configuration.CloudEventsAutoConfiguration; import org.activiti.cloud.services.events.configuration.ProcessEngineChannelsConfiguration; import org.activiti.cloud.services.events.configuration.RuntimeBundleProperties; -import org.activiti.cloud.services.events.converter.AuditServiceInfoAppender; import org.activiti.cloud.services.events.listeners.CloudProcessDeployedProducer; import org.activiti.cloud.services.rest.conf.ServicesRestWebMvcAutoConfiguration; import org.activiti.cloud.services.rest.config.StreamConfig; @@ -48,12 +46,10 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.boot.test.mock.mockito.SpyBean; -import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Import; import org.springframework.data.web.config.EnableSpringDataWebSupport; import org.springframework.hateoas.MediaTypes; @@ -108,15 +104,6 @@ public class ProcessInstanceTasksControllerImplIT { @MockBean private IdentityService identityService; - static class TestApp { - - @Bean - @ConditionalOnMissingBean - public IdentityService identityService() { - return mock(IdentityService.class); - } - } - @BeforeEach public void setUp() { assertThat(pageConverter).isNotNull();