1482-Revert to spring 3.0.7-RELEASE

git-svn-id: svn://svn.forge.objectweb.org/svnroot/weblab/trunk/WebLabServices/Portlets/metadata-portlet@4331 a803c184-d8de-4a0e-a52b-d3eef88212b6
parent 15339627
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<weblab.repositoryId>${weblab.snapshot.repositoryId}</weblab.repositoryId> <weblab.repositoryId>${weblab.snapshot.repositoryId}</weblab.repositoryId>
<weblab.url>${weblab.snapshot.url}</weblab.url> <weblab.url>${weblab.snapshot.url}</weblab.url>
<spring.version>3.0.7.RELEASE</spring.version>
</properties> </properties>
<dependencies> <dependencies>
...@@ -44,6 +45,50 @@ ...@@ -44,6 +45,50 @@
<groupId>org.ow2.weblab.components</groupId> <groupId>org.ow2.weblab.components</groupId>
<artifactId>weblab-taglib</artifactId> <artifactId>weblab-taglib</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc-portlet</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-asm</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc-portlet</artifactId>
</dependency>
</dependencies> </dependencies>
<description>This portlet displays WebLab resources metadata.</description> <description>This portlet displays WebLab resources metadata.</description>
...@@ -59,6 +104,56 @@ ...@@ -59,6 +104,56 @@
<artifactId>weblab-taglib</artifactId> <artifactId>weblab-taglib</artifactId>
<version>0.1.1-SNAPSHOT</version> <version>0.1.1-SNAPSHOT</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-asm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc-portlet</artifactId>
<version>${spring.version}</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
</project> </project>
...@@ -40,14 +40,13 @@ import org.springframework.context.support.FileSystemXmlApplicationContext; ...@@ -40,14 +40,13 @@ import org.springframework.context.support.FileSystemXmlApplicationContext;
public class ServiceTest { public class ServiceTest {
private static WSBusinessServicesImpl SERVICE; private static WSBusinessServicesImpl SERVICE;
@BeforeClass @BeforeClass
public static void init() { public static void init() {
try (final FileSystemXmlApplicationContext fsxac = new FileSystemXmlApplicationContext("src/main/webapp/WEB-INF/business_service_configuration.xml")) { final FileSystemXmlApplicationContext fsxac = new FileSystemXmlApplicationContext("src/main/webapp/WEB-INF/business_service_configuration.xml");
SERVICE = fsxac.getBean("metaviewBusinessService", WSBusinessServicesImpl.class); SERVICE = fsxac.getBean("metaviewBusinessService", WSBusinessServicesImpl.class);
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment