|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2010 the original author or authors. |
|
|
|
* Copyright 2002-2011 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -32,7 +32,6 @@ import javax.transaction.TransactionManager; |
|
|
|
|
|
|
|
|
|
|
|
import junit.framework.TestCase; |
|
|
|
import junit.framework.TestCase; |
|
|
|
import org.easymock.MockControl; |
|
|
|
import org.easymock.MockControl; |
|
|
|
import org.hibernate.Hibernate; |
|
|
|
|
|
|
|
import org.hibernate.HibernateException; |
|
|
|
import org.hibernate.HibernateException; |
|
|
|
import org.hibernate.Interceptor; |
|
|
|
import org.hibernate.Interceptor; |
|
|
|
import org.hibernate.SessionFactory; |
|
|
|
import org.hibernate.SessionFactory; |
|
|
|
@ -538,6 +537,7 @@ public class LocalSessionFactoryBeanTests extends TestCase { |
|
|
|
assertEquals(listeners, registeredListeners); |
|
|
|
assertEquals(listeners, registeredListeners); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
public void testLocalSessionFactoryBeanWithFilterDefinitions() throws Exception { |
|
|
|
public void testLocalSessionFactoryBeanWithFilterDefinitions() throws Exception { |
|
|
|
XmlBeanFactory xbf = new XmlBeanFactory(new ClassPathResource("filterDefinitions.xml", getClass())); |
|
|
|
XmlBeanFactory xbf = new XmlBeanFactory(new ClassPathResource("filterDefinitions.xml", getClass())); |
|
|
|
FilterTestLocalSessionFactoryBean sf = (FilterTestLocalSessionFactoryBean) xbf.getBean("&sessionFactory"); |
|
|
|
FilterTestLocalSessionFactoryBean sf = (FilterTestLocalSessionFactoryBean) xbf.getBean("&sessionFactory"); |
|
|
|
@ -555,6 +555,7 @@ public class LocalSessionFactoryBeanTests extends TestCase { |
|
|
|
assertEquals(1, filter2.getParameterNames().size()); |
|
|
|
assertEquals(1, filter2.getParameterNames().size()); |
|
|
|
assertEquals(Hibernate.INTEGER, filter2.getParameterType("myParam")); |
|
|
|
assertEquals(Hibernate.INTEGER, filter2.getParameterType("myParam")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
public void testLocalSessionFactoryBeanWithTypeDefinitions() throws Exception { |
|
|
|
public void testLocalSessionFactoryBeanWithTypeDefinitions() throws Exception { |
|
|
|
XmlBeanFactory xbf = new XmlBeanFactory(new ClassPathResource("typeDefinitions.xml", getClass())); |
|
|
|
XmlBeanFactory xbf = new XmlBeanFactory(new ClassPathResource("typeDefinitions.xml", getClass())); |
|
|
|
|