@ -140,14 +140,14 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -140,14 +140,14 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
/** Map of bean definition objects, keyed by bean name */
@ -91,6 +90,7 @@ public final class DestinationPatternsMessageCondition
@@ -91,6 +90,7 @@ public final class DestinationPatternsMessageCondition
returnresult;
}
publicSet<String>getPatterns(){
returnthis.patterns;
}
@ -105,14 +105,15 @@ public final class DestinationPatternsMessageCondition
@@ -105,14 +105,15 @@ public final class DestinationPatternsMessageCondition
@ -241,7 +241,7 @@ public class LocalSessionFactoryBuilder extends Configuration {
@@ -241,7 +241,7 @@ public class LocalSessionFactoryBuilder extends Configuration {
@ -123,8 +123,7 @@ public abstract class AbstractContainerEntityManagerFactoryIntegrationTests
@@ -123,8 +123,7 @@ public abstract class AbstractContainerEntityManagerFactoryIntegrationTests
@ -87,9 +87,11 @@ public abstract class AbstractEntityManagerFactoryIntegrationTests extends Abstr
@@ -87,9 +87,11 @@ public abstract class AbstractEntityManagerFactoryIntegrationTests extends Abstr
@ -121,15 +121,13 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
@@ -121,15 +121,13 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
doInstantiateAndSave(em);
setComplete();
endTransaction();// Should rollback
assertEquals("Tx must have committed back",
1,countRowsInTable(em,"person"));
assertEquals("Tx must have committed back",1,countRowsInTable(em,"person"));
// Now clean up the database
startNewTransaction();
em.joinTransaction();
deleteAllPeopleUsingEntityManager(em);
assertEquals("People have been killed",
0,countRowsInTable(em,"person"));
assertEquals("People have been killed",0,countRowsInTable(em,"person"));
setComplete();
}
@ -142,8 +140,7 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
@@ -142,8 +140,7 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
em.joinTransaction();
doInstantiateAndSave(em);
endTransaction();// Should rollback
assertEquals("Tx must have been rolled back",
0,countRowsInTable(em,"person"));
assertEquals("Tx must have been rolled back",0,countRowsInTable(em,"person"));
}
publicvoidtestCommitOccurs(){
@ -153,11 +150,10 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
@@ -153,11 +150,10 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
setComplete();
endTransaction();// Should rollback
assertEquals("Tx must have committed back",
1,countRowsInTable(em,"person"));
assertEquals("Tx must have committed back",1,countRowsInTable(em,"person"));
@ -104,8 +104,7 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
@@ -104,8 +104,7 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
}
publicvoiddoInstantiateAndSave(EntityManagerem){
assertEquals("Should be no people from previous transactions",
0,countRowsInTable(em,"person"));
assertEquals("Should be no people from previous transactions",0,countRowsInTable(em,"person"));
Personp=newPerson();
p.setFirstName("Tony");
@ -131,19 +130,17 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
@@ -131,19 +130,17 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
doInstantiateAndSave(em);
setComplete();
endTransaction();// Should rollback
assertEquals("Tx must have committed back",
1,countRowsInTable(em,"person"));
assertEquals("Tx must have committed back",1,countRowsInTable(em,"person"));
assertEquals("Tx must have been rolled back",0,countRowsInTable(em,"person"));
}
publicvoidtestCommitOccurs(){
@ -151,11 +148,10 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
@@ -151,11 +148,10 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
doInstantiateAndSave(em);
setComplete();
endTransaction();// Should rollback
assertEquals("Tx must have committed back",
1,countRowsInTable(em,"person"));
assertEquals("Tx must have committed back",1,countRowsInTable(em,"person"));
@ -51,11 +51,6 @@ public class PersistenceInjectionIntegrationTests extends AbstractEntityManagerF
@@ -51,11 +51,6 @@ public class PersistenceInjectionIntegrationTests extends AbstractEntityManagerF
assertNotNull("Default PersistenceContext Setter was injected",injectedEm);
@ -330,8 +330,9 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@@ -330,8 +330,9 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@ -542,9 +543,9 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@@ -542,9 +543,9 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@ -554,9 +555,9 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@@ -554,9 +555,9 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@ -566,9 +567,9 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@@ -566,9 +567,9 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@ -576,28 +577,28 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@@ -576,28 +577,28 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@ -610,10 +611,10 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@@ -610,10 +611,10 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@ -635,13 +636,13 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@@ -635,13 +636,13 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@ -668,13 +669,13 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@@ -668,13 +669,13 @@ public class PersistenceInjectionTests extends AbstractEntityManagerFactoryBeanT
@ -105,11 +104,11 @@ public abstract class AbstractTransactionalDataSourceSpringContextTests
@@ -105,11 +104,11 @@ public abstract class AbstractTransactionalDataSourceSpringContextTests
*{@codesetComplete()}impossible.
*@see#setComplete
*/
protectedvoiddeleteFromTables(String[]names){
for(inti=0;i<names.length;i++){
introwCount=this.jdbcTemplate.update("DELETE FROM "+names[i]);
protectedvoiddeleteFromTables(String...names){
for(Stringname:names){
introwCount=this.jdbcTemplate.update("DELETE FROM "+name);
if(logger.isInfoEnabled()){
logger.info("Deleted "+rowCount+" rows from table "+names[i]);
logger.info("Deleted "+rowCount+" rows from table "+name);