Skip to content

Commit

Permalink
Use Spring Context 4 in the Spring integration test (#4307)
Browse files Browse the repository at this point in the history
* Spring 4 tests compatibility

Signed-off-by: Daniel Kec <[email protected]>
  • Loading branch information
danielkec authored and senivam committed Oct 30, 2019
1 parent 82a85a1 commit 4c10f29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
13 changes: 0 additions & 13 deletions tests/integration/spring4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,9 @@
<groupId>org.glassfish.jersey.ext</groupId>
<artifactId>jersey-spring4</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</exclusion>
</exclusions>
<scope>compile</scope>
</dependency>

<!-- TODO Use spring-context 4 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.16.RELEASE</version>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.test-framework</groupId>
<artifactId>jersey-test-framework-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -32,6 +32,15 @@
</property>
</bean>

<!-- Needed since Spring Context 4, was default in Spring Context 3 -->
<bean id="customAutowireConfigurer" class="org.springframework.beans.factory.annotation.CustomAutowireConfigurer">
<property name="customQualifierTypes">
<set>
<value>org.springframework.beans.factory.annotation.Qualifier</value>
</set>
</property>
</bean>

<bean name="AccountService-singleton" class="org.glassfish.jersey.server.spring.test.AccountServiceImpl" />

<bean name="AccountService-request-1" class="org.glassfish.jersey.server.spring.test.AccountServiceImpl" scope="request">
Expand Down

0 comments on commit 4c10f29

Please sign in to comment.