@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
/ *
* Copyright 2002 - 2007 the original author or authors .
* Copyright 2002 - 2009 the original author or authors .
*
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
@ -26,7 +26,6 @@ import static org.testng.Assert.assertTrue;
@@ -26,7 +26,6 @@ import static org.testng.Assert.assertTrue;
import javax.annotation.Resource ;
import javax.sql.DataSource ;
import org.junit.Ignore ;
import org.springframework.beans.Employee ;
import org.springframework.beans.Pet ;
import org.springframework.beans.factory.BeanNameAware ;
@ -52,31 +51,21 @@ import org.testng.annotations.Test;
@@ -52,31 +51,21 @@ import org.testng.annotations.Test;
* @author Sam Brannen
* @since 2 . 5
* /
@Ignore // renamed to Tests_ to avoid being picked up by junit. Spring Build support for TestNG is pending.
@org.junit.Ignore ( "TestNG tests should not be run by JUnit" )
@ContextConfiguration
public class ConcreteTransactionalTestNGSpringContextTests_ extends AbstractTransactionalTestNGSpringContextTests
public class ConcreteTransactionalTestNGSpringContextTests extends AbstractTransactionalTestNGSpringContextTests
implements BeanNameAware , InitializingBean {
// ------------------------------------------------------------------------|
// --- CONSTANTS ----------------------------------------------------------|
// ------------------------------------------------------------------------|
private static final String BOB = "bob" ;
private static final String JANE = "jane" ;
private static final String SUE = "sue" ;
private static final String YODA = "yoda" ;
// ------------------------------------------------------------------------|
// --- STATIC VARIABLES ---------------------------------------------------|
// ------------------------------------------------------------------------|
private static int numSetUpCalls = 0 ;
private static int numSetUpCallsInTransaction = 0 ;
private static int numTearDownCalls = 0 ;
private static int numTearDownCallsInTransaction = 0 ;
// ------------------------------------------------------------------------|
// --- INSTANCE VARIABLES -------------------------------------------------|
// ------------------------------------------------------------------------|
private boolean beanInitialized = false ;
@ -97,8 +86,6 @@ public class ConcreteTransactionalTestNGSpringContextTests_ extends AbstractTran
@@ -97,8 +86,6 @@ public class ConcreteTransactionalTestNGSpringContextTests_ extends AbstractTran
protected String bar ;
// ------------------------------------------------------------------------|
// --- STATIC METHODS -----------------------------------------------------|
// ------------------------------------------------------------------------|
private static int clearPersonTable ( SimpleJdbcTemplate simpleJdbcTemplate ) {
@ -126,8 +113,6 @@ public class ConcreteTransactionalTestNGSpringContextTests_ extends AbstractTran
@@ -126,8 +113,6 @@ public class ConcreteTransactionalTestNGSpringContextTests_ extends AbstractTran
return simpleJdbcTemplate . update ( "DELETE FROM person WHERE name=?" , name ) ;
}
// ------------------------------------------------------------------------|
// --- INSTANCE METHODS ---------------------------------------------------|
// ------------------------------------------------------------------------|
public void afterPropertiesSet ( ) throws Exception {
@ -275,8 +260,6 @@ public class ConcreteTransactionalTestNGSpringContextTests_ extends AbstractTran
@@ -275,8 +260,6 @@ public class ConcreteTransactionalTestNGSpringContextTests_ extends AbstractTran
}
// ------------------------------------------------------------------------|
// --- TYPES --------------------------------------------------------------|
// ------------------------------------------------------------------------|
public static class DatabaseSetup {