mirror of https://github.com/apache/archiva.git
Switch to spring 5.2
This commit is contained in:
parent
b0e52ea61a
commit
ec0ecb744b
|
@ -73,9 +73,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -119,9 +119,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -50,9 +50,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -66,9 +66,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -35,6 +35,7 @@ import org.junit.runner.RunWith;
|
|||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.BeanFactory;
|
||||
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
@ -448,6 +449,18 @@ public class RepositoryContentConsumersTest
|
|||
throw new UnsupportedOperationException( "Not supported yet." );
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> ObjectProvider<T> getBeanProvider( Class<T> aClass )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> ObjectProvider<T> getBeanProvider( ResolvableType resolvableType )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings( "unchecked" )
|
||||
@Override
|
||||
public <T> Map<String, T> getBeansOfType( Class<T> type )
|
||||
|
@ -512,6 +525,12 @@ public class RepositoryContentConsumersTest
|
|||
throw new UnsupportedOperationException( "Not supported yet." );
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<?> getType( String s, boolean b ) throws NoSuchBeanDefinitionException
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPrototype( String name )
|
||||
throws NoSuchBeanDefinitionException
|
||||
|
@ -634,6 +653,12 @@ public class RepositoryContentConsumersTest
|
|||
return new String[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getBeanNamesForType( ResolvableType resolvableType, boolean b, boolean b1 )
|
||||
{
|
||||
return new String[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTypeMatch( String s, ResolvableType resolvableType )
|
||||
throws NoSuchBeanDefinitionException
|
||||
|
|
|
@ -50,9 +50,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -37,9 +37,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -90,9 +90,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -111,9 +111,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -125,9 +125,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -38,6 +38,7 @@ import org.junit.runner.RunWith;
|
|||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.BeanFactory;
|
||||
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
@ -255,6 +256,18 @@ public class RssFeedServletTest
|
|||
return applicationContext.getBean( aClass, objects );
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> ObjectProvider<T> getBeanProvider( Class<T> aClass )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> ObjectProvider<T> getBeanProvider( ResolvableType resolvableType )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> Map<String, T> getBeansOfType( Class<T> tClass, boolean b, boolean b2 )
|
||||
throws BeansException
|
||||
|
@ -344,6 +357,12 @@ public class RssFeedServletTest
|
|||
return applicationContext.getType( s );
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<?> getType( String s, boolean b ) throws NoSuchBeanDefinitionException
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getAliases( String s )
|
||||
{
|
||||
|
@ -401,6 +420,12 @@ public class RssFeedServletTest
|
|||
return new String[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getBeanNamesForType( ResolvableType resolvableType, boolean b, boolean b1 )
|
||||
{
|
||||
return new String[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTypeMatch( String s, ResolvableType resolvableType )
|
||||
throws NoSuchBeanDefinitionException
|
||||
|
|
|
@ -91,9 +91,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -90,9 +90,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -64,9 +64,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -53,9 +53,7 @@
|
|||
<jee:jndi-lookup id="dataSource" jndi-name="java:/comp/env/jdbc/users" />
|
||||
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="dataSource" ref="dataSource" />
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
</bean>
|
||||
|
||||
|
||||
|
|
|
@ -273,9 +273,7 @@
|
|||
<!-- END SNIPPET: jcr-location -->
|
||||
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -44,6 +44,7 @@ import org.slf4j.LoggerFactory;
|
|||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.BeanFactory;
|
||||
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
@ -415,6 +416,18 @@ public abstract class AbstractRepositoryServletTestCase
|
|||
return applicationContext.getBean( aClass, objects );
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> ObjectProvider<T> getBeanProvider( Class<T> aClass )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> ObjectProvider<T> getBeanProvider( ResolvableType resolvableType )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getBean( String s )
|
||||
throws BeansException
|
||||
|
@ -477,6 +490,12 @@ public abstract class AbstractRepositoryServletTestCase
|
|||
return applicationContext.getType( s );
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<?> getType( String s, boolean b ) throws NoSuchBeanDefinitionException
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getAliases( String s )
|
||||
{
|
||||
|
@ -522,6 +541,12 @@ public abstract class AbstractRepositoryServletTestCase
|
|||
return new String[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getBeanNamesForType( ResolvableType resolvableType, boolean b, boolean b1 )
|
||||
{
|
||||
return new String[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTypeMatch( String s, ResolvableType resolvableType )
|
||||
throws NoSuchBeanDefinitionException
|
||||
|
|
|
@ -77,9 +77,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
|
@ -79,9 +79,7 @@
|
|||
JPA settings
|
||||
*** -->
|
||||
<bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||
<property name="jpaVendorAdapter" >
|
||||
<bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
|
||||
</property>
|
||||
|
||||
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
|
||||
<property name="jpaPropertyMap">
|
||||
<map>
|
||||
|
|
Loading…
Reference in New Issue