diff --git a/bonita-integration-tests/bonita-query-tests/build.gradle b/bonita-integration-tests/bonita-query-tests/build.gradle index 8dd7b733256..5605f3c5c4b 100644 --- a/bonita-integration-tests/bonita-query-tests/build.gradle +++ b/bonita-integration-tests/bonita-query-tests/build.gradle @@ -10,7 +10,6 @@ dependencies { testImplementation libs.springTest testImplementation libs.springJdbc testImplementation libs.springOrm - testImplementation libs.jakartaInjectApi testImplementation project(":bpm:bonita-server") testImplementation project(":bpm:bonita-common") diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/application/ApplicationQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/application/ApplicationQueriesTest.java index ec0a4ffeadd..6d46a53427e 100755 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/application/ApplicationQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/application/ApplicationQueriesTest.java @@ -28,8 +28,6 @@ import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.business.application.model.AbstractSApplication; import org.bonitasoft.engine.business.application.model.SApplication; import org.bonitasoft.engine.business.application.model.SApplicationMenu; @@ -43,6 +41,7 @@ import org.bonitasoft.engine.test.persistence.repository.ApplicationRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -55,7 +54,7 @@ @Transactional public class ApplicationQueriesTest { - @Inject + @Autowired private ApplicationRepository repository; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/contract/data/ContractDataTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/contract/data/ContractDataTest.java index 382e1f17c42..dc1774f6754 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/contract/data/ContractDataTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/contract/data/ContractDataTest.java @@ -19,12 +19,11 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.test.persistence.jdbc.JdbcRowMapper; import org.bonitasoft.engine.test.persistence.repository.ContractDataRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -38,9 +37,9 @@ @Transactional public class ContractDataTest { - @Inject + @Autowired private ContractDataRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/form/FormMappingTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/form/FormMappingTest.java index f7bdc606a48..14e73deae72 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/form/FormMappingTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/form/FormMappingTest.java @@ -19,13 +19,12 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.page.SPageMapping; import org.bonitasoft.engine.test.persistence.jdbc.JdbcRowMapper; import org.bonitasoft.engine.test.persistence.repository.TestRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -36,10 +35,10 @@ @Transactional public class FormMappingTest { - @Inject + @Autowired TestRepository testRepository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ActorMappingTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ActorMappingTest.java index a4bc174cce1..6a4308ad4b3 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ActorMappingTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ActorMappingTest.java @@ -23,14 +23,13 @@ import java.util.Arrays; import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.actor.mapping.model.SActor; import org.bonitasoft.engine.actor.mapping.model.SActorMember; import org.bonitasoft.engine.identity.model.SUser; import org.bonitasoft.engine.test.persistence.repository.UserMembershipRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -43,7 +42,7 @@ @Transactional public class ActorMappingTest { - @Inject + @Autowired private UserMembershipRepository repository; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ArchiveFlowNodeInstanceTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ArchiveFlowNodeInstanceTest.java index 32220963b0e..63c3993ab79 100755 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ArchiveFlowNodeInstanceTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ArchiveFlowNodeInstanceTest.java @@ -18,8 +18,6 @@ import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.core.process.definition.model.SGatewayType; import org.bonitasoft.engine.core.process.instance.model.archive.SAAutomaticTaskInstance; import org.bonitasoft.engine.core.process.instance.model.archive.SACallActivityInstance; @@ -36,6 +34,7 @@ import org.bonitasoft.engine.test.persistence.repository.FlowNodeInstanceRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -46,9 +45,9 @@ @Transactional public class ArchiveFlowNodeInstanceTest { - @Inject + @Autowired private FlowNodeInstanceRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ArchiveProcessInstanceQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ArchiveProcessInstanceQueriesTest.java index 447f5256c73..cc96d272346 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ArchiveProcessInstanceQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ArchiveProcessInstanceQueriesTest.java @@ -24,8 +24,6 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.core.process.instance.model.archive.SAProcessInstance; import org.bonitasoft.engine.core.process.instance.model.archive.business.data.SAFlowNodeSimpleRefBusinessDataInstance; import org.bonitasoft.engine.core.process.instance.model.archive.business.data.SAProcessMultiRefBusinessDataInstance; @@ -35,6 +33,7 @@ import org.bonitasoft.engine.test.persistence.repository.ProcessInstanceRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -48,10 +47,10 @@ public class ArchiveProcessInstanceQueriesTest { private static final long PROCESS_INSTANCE_ID = 43578923425L; private static final long FLOW_NODE_INSTANCE_ID = 342678L; - @Inject + @Autowired private ProcessInstanceRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/BPMEventQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/BPMEventQueriesTest.java index 0ac5f6e1a07..f326e1605e0 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/BPMEventQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/BPMEventQueriesTest.java @@ -22,13 +22,12 @@ import java.util.Arrays; import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.core.process.instance.model.event.handling.SMessageInstance; import org.bonitasoft.engine.core.process.instance.model.event.handling.SWaitingEvent; import org.bonitasoft.engine.test.persistence.repository.BPMEventRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -43,10 +42,10 @@ public class BPMEventQueriesTest { private static final int MORE_THAN_DEFAULT_PAGE_SIZE = 42; - @Inject + @Autowired private BPMEventRepository bPMEventRepository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/CommentsTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/CommentsTest.java index d56b281b39d..b9fed49acad 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/CommentsTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/CommentsTest.java @@ -20,8 +20,6 @@ import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.core.process.comment.model.SHumanComment; import org.bonitasoft.engine.core.process.comment.model.SSystemComment; import org.bonitasoft.engine.core.process.comment.model.archive.SAComment; @@ -30,6 +28,7 @@ import org.bonitasoft.engine.test.persistence.repository.CommentRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -47,9 +46,9 @@ public class CommentsTest { private static final long JOHN_ID = 784L; private static final long PROCESS1_ID = 123L; private static final long PROCESS2_ID = 124L; - @Inject + @Autowired private CommentRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; //Those tests currently verify that the queries returning UserMemberships correctly retrieve the groupParentPath when building the Usermembership objects diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ConnectorInstanceQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ConnectorInstanceQueriesTest.java index c6b0c98ead4..08261d15982 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ConnectorInstanceQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ConnectorInstanceQueriesTest.java @@ -20,8 +20,6 @@ import java.util.List; -import javax.inject.Inject; - import org.assertj.core.api.Condition; import org.assertj.core.util.Lists; import org.bonitasoft.engine.bpm.connector.ConnectorState; @@ -30,6 +28,7 @@ import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -43,10 +42,10 @@ @Transactional public class ConnectorInstanceQueriesTest { - @Inject + @Autowired private ConnectorInstanceRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; private SAbstractConnectorInstance expectedConnector1; diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/CustomUserInfoQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/CustomUserInfoQueriesTest.java index 1279ea5d58c..37e1e885091 100755 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/CustomUserInfoQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/CustomUserInfoQueriesTest.java @@ -20,14 +20,13 @@ import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.identity.model.SCustomUserInfoDefinition; import org.bonitasoft.engine.identity.model.SUser; import org.bonitasoft.engine.test.persistence.repository.CustomUserInfoRepository; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -44,7 +43,7 @@ public class CustomUserInfoQueriesTest { private static final String SKILLS_NAME = "skills"; - @Inject + @Autowired private CustomUserInfoRepository repository; private SUser user1; diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/EventTriggerInstanceQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/EventTriggerInstanceQueriesTest.java index 294cffc685c..63e1c44e960 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/EventTriggerInstanceQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/EventTriggerInstanceQueriesTest.java @@ -17,14 +17,13 @@ import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.core.process.instance.model.event.SIntermediateCatchEventInstance; import org.bonitasoft.engine.core.process.instance.model.event.trigger.STimerEventTriggerInstance; import org.bonitasoft.engine.test.persistence.builder.PersistentObjectBuilder; import org.bonitasoft.engine.test.persistence.repository.ProcessInstanceRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -34,7 +33,7 @@ @Transactional public class EventTriggerInstanceQueriesTest { - @Inject + @Autowired private ProcessInstanceRepository repository; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/FlowNodeInstanceTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/FlowNodeInstanceTest.java index f9b99ddccee..c9b3c15c78a 100755 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/FlowNodeInstanceTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/FlowNodeInstanceTest.java @@ -34,8 +34,6 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.actor.mapping.model.SActor; import org.bonitasoft.engine.core.process.definition.model.SProcessDefinitionDeployInfo; import org.bonitasoft.engine.core.process.instance.model.archive.SAFlowNodeInstance; @@ -53,6 +51,7 @@ import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -81,10 +80,10 @@ public class FlowNodeInstanceTest { private static final long NORMAL_HUMAN_INSTANCE_ID = 743L; - @Inject + @Autowired private FlowNodeInstanceRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Before diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessDefinitionQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessDefinitionQueriesTest.java index deadcd9722b..c241e6f5ed0 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessDefinitionQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessDefinitionQueriesTest.java @@ -21,13 +21,12 @@ import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.actor.mapping.model.SActor; import org.bonitasoft.engine.identity.model.SUser; import org.bonitasoft.engine.test.persistence.repository.ProcessInstanceRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -39,7 +38,7 @@ public class ProcessDefinitionQueriesTest { private static final long PROCESS_ID = 45354312L; private static final long ROLE_ID = 222222L; - @Inject + @Autowired private ProcessInstanceRepository repository; /* * Tests for queries: diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessDeploymentInfoQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessDeploymentInfoQueriesTest.java index 0dd7f220d61..fa0b99d6681 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessDeploymentInfoQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessDeploymentInfoQueriesTest.java @@ -26,8 +26,6 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.actor.mapping.model.SActor; import org.bonitasoft.engine.core.process.definition.model.SProcessDefinitionDeployInfo; import org.bonitasoft.engine.core.process.definition.model.SProcessDefinitionDesignContent; @@ -38,6 +36,7 @@ import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -80,9 +79,9 @@ public class ProcessDeploymentInfoQueriesTest { private static final long ROOT_PROCESS_INSTANCE_ID_NOT_SUPERVISED = 1269L; - @Inject + @Autowired private ProcessDeploymentInfoRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Before diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessInstanceQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessInstanceQueriesTest.java index 9c57ff31571..62e0a7a6223 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessInstanceQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/ProcessInstanceQueriesTest.java @@ -35,8 +35,6 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.actor.mapping.model.SActor; import org.bonitasoft.engine.actor.mapping.model.SActorMember; import org.bonitasoft.engine.bpm.process.ProcessInstanceState; @@ -50,6 +48,7 @@ import org.bonitasoft.engine.test.persistence.repository.ProcessInstanceRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -67,10 +66,10 @@ public class ProcessInstanceQueriesTest { private static final long PROCESS_INSTANCE_ID = 43578923425L; private static final long FLOW_NODE_INSTANCE_ID = 342678L; - @Inject + @Autowired private ProcessInstanceRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/RoleTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/RoleTest.java index 4abf0c71056..ed7998d8b9f 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/RoleTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/RoleTest.java @@ -16,11 +16,10 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.bonitasoft.engine.test.persistence.builder.RoleBuilder.aRole; -import javax.inject.Inject; - import org.bonitasoft.engine.test.persistence.repository.RoleRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -33,7 +32,7 @@ @Transactional public class RoleTest { - @Inject + @Autowired private RoleRepository repository; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/SADataInstanceQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/SADataInstanceQueriesTest.java index 00c02ebdb59..80ad91c5972 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/SADataInstanceQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/SADataInstanceQueriesTest.java @@ -21,8 +21,6 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.data.instance.model.SBlobDataInstance; import org.bonitasoft.engine.data.instance.model.SBooleanDataInstance; import org.bonitasoft.engine.data.instance.model.SDataInstance; @@ -51,6 +49,7 @@ import org.bonitasoft.engine.test.persistence.repository.SADataInstanceRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -62,9 +61,9 @@ public class SADataInstanceQueriesTest { private static final long CONTAINER_ID = 12345L; - @Inject + @Autowired private SADataInstanceRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; private void addSADataInstance(final int id, final String name, final int containerId, final String value, diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/SupervisorQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/SupervisorQueriesTest.java index 751e075d149..8770776a602 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/SupervisorQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/SupervisorQueriesTest.java @@ -18,8 +18,6 @@ import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.identity.model.SGroup; import org.bonitasoft.engine.identity.model.SRole; import org.bonitasoft.engine.identity.model.SUser; @@ -27,6 +25,7 @@ import org.bonitasoft.engine.test.persistence.repository.SupervisorRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -48,7 +47,7 @@ public class SupervisorQueriesTest { private static final long roleId = 6; - @Inject + @Autowired private SupervisorRepository repository; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/UserMembershipTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/UserMembershipTest.java index 25f7ba89acc..a4adfcd292a 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/UserMembershipTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/UserMembershipTest.java @@ -21,8 +21,6 @@ import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.identity.model.SGroup; import org.bonitasoft.engine.identity.model.SRole; import org.bonitasoft.engine.identity.model.SUser; @@ -30,6 +28,7 @@ import org.bonitasoft.engine.test.persistence.repository.UserMembershipRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -42,7 +41,7 @@ @Transactional public class UserMembershipTest { - @Inject + @Autowired private UserMembershipRepository repository; //Those tests currently verify that the queries returning UserMemberships correctly retrieve the groupParentPath when building the Usermembership objects diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/UserTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/UserTest.java index f383962e68f..b36ab7b6e27 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/UserTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/core/process/instance/model/UserTest.java @@ -17,13 +17,12 @@ import static org.bonitasoft.engine.test.persistence.builder.PersistentObjectBuilder.DEFAULT_TENANT_ID; import static org.bonitasoft.engine.test.persistence.builder.UserBuilder.aUser; -import javax.inject.Inject; - import org.bonitasoft.engine.identity.model.SUser; import org.bonitasoft.engine.identity.model.SUserLogin; import org.bonitasoft.engine.test.persistence.repository.UserRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -36,7 +35,7 @@ @Transactional public class UserTest { - @Inject + @Autowired private UserRepository repository; //Those tests currently verify that the queries returning UserMemberships correctly retrieve the groupParentPath when building the Usermembership objects diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/document/DocumentQueryTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/document/DocumentQueryTest.java index b7c21fea44f..04761654148 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/document/DocumentQueryTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/document/DocumentQueryTest.java @@ -15,8 +15,6 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; - import org.bonitasoft.engine.core.document.model.SDocument; import org.bonitasoft.engine.core.document.model.SDocumentMapping; import org.bonitasoft.engine.core.document.model.SLightDocument; @@ -25,6 +23,7 @@ import org.bonitasoft.engine.test.persistence.repository.DocumentRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -36,7 +35,7 @@ public class DocumentQueryTest { private static final long PROCESS_INSTANCE_ID = 6666666666666666L; - @Inject + @Autowired private DocumentRepository repository; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/page/PageQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/page/PageQueriesTest.java index 61ef2ea761d..2bfa82422fb 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/page/PageQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/page/PageQueriesTest.java @@ -20,11 +20,10 @@ import java.util.Arrays; import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.test.persistence.repository.PageRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -34,7 +33,7 @@ @Transactional public class PageQueriesTest { - @Inject + @Autowired private PageRepository repository; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/parameter/ParameterTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/parameter/ParameterTest.java index 25be3060a91..a1e9db3d995 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/parameter/ParameterTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/parameter/ParameterTest.java @@ -19,13 +19,12 @@ import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.persistence.PersistentObject; import org.bonitasoft.engine.test.persistence.jdbc.JdbcRowMapper; import org.bonitasoft.engine.test.persistence.repository.TestRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -36,9 +35,9 @@ @Transactional public class ParameterTest { - @Inject + @Autowired private TestRepository testRepository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/platform/command/model/PlatformCommandTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/platform/command/model/PlatformCommandTest.java index b32a156c148..77bbfe1796d 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/platform/command/model/PlatformCommandTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/platform/command/model/PlatformCommandTest.java @@ -19,13 +19,12 @@ import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.persistence.PersistentObject; import org.bonitasoft.engine.test.persistence.jdbc.JdbcRowMapper; import org.bonitasoft.engine.test.persistence.repository.PlatformRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -36,9 +35,9 @@ @Transactional public class PlatformCommandTest { - @Inject + @Autowired private PlatformRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/platform/model/impl/PlatformTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/platform/model/impl/PlatformTest.java index d131be61982..79619c74c2e 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/platform/model/impl/PlatformTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/platform/model/impl/PlatformTest.java @@ -19,14 +19,13 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.persistence.PersistentObject; import org.bonitasoft.engine.platform.model.SPlatform; import org.bonitasoft.engine.test.persistence.jdbc.JdbcRowMapper; import org.bonitasoft.engine.test.persistence.repository.PlatformRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -37,9 +36,9 @@ @Transactional public class PlatformTest { - @Inject + @Autowired private PlatformRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/profile/ProfilesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/profile/ProfilesTest.java index 1bae590d6f1..1937706bcae 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/profile/ProfilesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/profile/ProfilesTest.java @@ -24,8 +24,6 @@ import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.identity.model.SGroup; import org.bonitasoft.engine.identity.model.SRole; import org.bonitasoft.engine.identity.model.SUser; @@ -34,6 +32,7 @@ import org.bonitasoft.engine.test.persistence.repository.UserMembershipRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -47,11 +46,11 @@ public class ProfilesTest { @SuppressWarnings("unused") - @Inject + @Autowired private ProfileRepository repository; @SuppressWarnings("unused") - @Inject + @Autowired private UserMembershipRepository userMembershipRepository; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/queriablelogger/model/QueriableLogParameterTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/queriablelogger/model/QueriableLogParameterTest.java index d28073423d9..ad8106896a9 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/queriablelogger/model/QueriableLogParameterTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/queriablelogger/model/QueriableLogParameterTest.java @@ -19,12 +19,11 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.test.persistence.jdbc.JdbcRowMapper; import org.bonitasoft.engine.test.persistence.repository.TestRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -35,9 +34,9 @@ @Transactional public class QueriableLogParameterTest { - @Inject + @Autowired TestRepository testRepository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/queriablelogger/model/QueriableLogTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/queriablelogger/model/QueriableLogTest.java index 0fbe9e6565c..9c043a401b3 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/queriablelogger/model/QueriableLogTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/queriablelogger/model/QueriableLogTest.java @@ -19,12 +19,11 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.test.persistence.jdbc.JdbcRowMapper; import org.bonitasoft.engine.test.persistence.repository.TestRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -35,9 +34,9 @@ @Transactional public class QueriableLogTest { - @Inject + @Autowired TestRepository testRepository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/DependencyServiceQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/DependencyServiceQueriesTest.java index 3b3ca6286d1..234b5f1be60 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/DependencyServiceQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/DependencyServiceQueriesTest.java @@ -23,8 +23,6 @@ import java.util.Map; import java.util.Random; -import javax.inject.Inject; - import org.bonitasoft.engine.dependency.model.DependencyContent; import org.bonitasoft.engine.dependency.model.SDependency; import org.bonitasoft.engine.dependency.model.SDependencyMapping; @@ -36,6 +34,7 @@ import org.bonitasoft.engine.test.persistence.repository.PlatformRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -49,11 +48,11 @@ @Transactional public class DependencyServiceQueriesTest { - @Inject + @Autowired private DependencyRepository repository; - @Inject + @Autowired private PlatformRepository platformRepository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; private static String getSaltString() { diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/ProcessResourceServiceQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/ProcessResourceServiceQueriesTest.java index 17c2743a092..372115ecab6 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/ProcessResourceServiceQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/ProcessResourceServiceQueriesTest.java @@ -19,11 +19,10 @@ import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.test.persistence.repository.ProcessResourceRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -33,7 +32,7 @@ @Transactional public class ProcessResourceServiceQueriesTest { - @Inject + @Autowired private ProcessResourceRepository repository; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/TenantResourceServiceQueriesTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/TenantResourceServiceQueriesTest.java index 1bdbb513244..824246ae2dd 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/TenantResourceServiceQueriesTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/resources/TenantResourceServiceQueriesTest.java @@ -19,11 +19,10 @@ import java.util.List; -import javax.inject.Inject; - import org.bonitasoft.engine.test.persistence.repository.TenantResourceRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -34,10 +33,10 @@ @Transactional public class TenantResourceServiceQueriesTest { - @Inject + @Autowired private TenantResourceRepository repository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/scheduler/SchedulerQueryTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/scheduler/SchedulerQueryTest.java index 95383e1cdce..1176a394d86 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/scheduler/SchedulerQueryTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/scheduler/SchedulerQueryTest.java @@ -22,8 +22,6 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; - import org.bonitasoft.engine.persistence.PersistentObject; import org.bonitasoft.engine.persistence.QueryOptions; import org.bonitasoft.engine.scheduler.model.SFailedJob; @@ -35,6 +33,7 @@ import org.hibernate.internal.util.SerializationHelper; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @@ -45,9 +44,9 @@ @Transactional public class SchedulerQueryTest { - @Inject + @Autowired private JobRepository jobRepository; - @Inject + @Autowired private JdbcTemplate jdbcTemplate; @Test diff --git a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/temporary/content/TemporaryContentQueryTest.java b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/temporary/content/TemporaryContentQueryTest.java index 328162bdf4f..5bcd21fbb91 100644 --- a/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/temporary/content/TemporaryContentQueryTest.java +++ b/bonita-integration-tests/bonita-query-tests/src/test/java/org/bonitasoft/engine/temporary/content/TemporaryContentQueryTest.java @@ -24,11 +24,10 @@ import java.sql.Blob; import java.sql.SQLException; -import javax.inject.Inject; - import org.bonitasoft.engine.test.persistence.repository.TemporaryContentRepository; import org.junit.Test; import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @@ -41,7 +40,7 @@ @Transactional public class TemporaryContentQueryTest { - @Inject + @Autowired private TemporaryContentRepository repository; @Test diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index a293621c238..c0dcba88cc2 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -255,7 +255,6 @@ jettySecurity = { group = "org.eclipse.jetty", name = "jetty-security", version. jbossLogging = { group = "org.jboss.logging", name = "jboss-logging", version.ref = "jbossLoggingVersion" } commonsExec = { group = "org.apache.commons", name = "commons-exec", version.ref = "commonsExecVersion" } jmockit = { group = "org.jmockit", name = "jmockit", version.ref = "jmockitVersion" } -jakartaInjectApi = { group = "jakarta.inject", name = "jakarta.inject-api", version = "1.0.5" } mockServerJunit = { group = "org.mock-server", name = "mockserver-junit-rule-no-dependencies", version.ref = "mockServerJunitVersion" }