]> source.dussan.org Git - archiva.git/commitdiff
fix test
authorolivier lamy <olamy@apache.org>
Mon, 14 Aug 2017 11:38:49 +0000 (21:38 +1000)
committerolivier lamy <olamy@apache.org>
Mon, 14 Aug 2017 11:38:49 +0000 (21:38 +1000)
Signed-off-by: olivier lamy <olamy@apache.org>
archiva-modules/archiva-web/archiva-web-common/pom.xml
archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/TestRepositorySessionFactoryBean.java
archiva-modules/archiva-web/archiva-web-common/src/test/resources/spring-context-with-jcr.xml

index 1c58772a606f652a861507c42ea83d83bb8ef1eb..92c056de4fd5611c029baa6f4bfc1a6757804df7 100644 (file)
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
+          <reuseForks>false</reuseForks>
           <argLine>-Xms1024m -Xmx2048m -server -XX:MaxPermSize=256m @{jacocoproperty}</argLine>
           <systemPropertyVariables>
             <appserver.base>${project.build.directory}/appserver-base</appserver.base>
index 880ac94b22f4a3e1dffb84ab5ac301bcdbaea5cb..82bd3602d4ef00576dc91580d964e93c021b1ef6 100644 (file)
@@ -58,4 +58,10 @@ public class TestRepositorySessionFactoryBean
         logger.info( "create RepositorySessionFactory instance of {}", repositorySessionFactory.getClass().getName() );
         return repositorySessionFactory;
     }
+
+    @Override
+    public String getId()
+    {
+        return this.beanId;
+    }
 }
index 6b72d332a4992042846dfe244ec155b1838019e3..f29dbcb16dc2a23a9c8341a014a0486838aa7b8f 100644 (file)
 
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
+       xmlns:tx="http://www.springframework.org/schema/tx"
        xsi:schemaLocation="http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
-           http://www.springframework.org/schema/context 
-           http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"
+           http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"
        default-lazy-init="true">
 
   <!--