Author: vhalbert(a)redhat.com
Date: 2009-11-25 10:29:54 -0500 (Wed, 25 Nov 2009)
New Revision: 1593
Modified:
trunk/test-integration/db/src/test/java/org/teiid/test/testcases/BaseAbstractTransactionTestCase.java
Log:
Teiid 773 - refactored back in the way jbedsp transaction classes where defined and added
the other integration test
Modified:
trunk/test-integration/db/src/test/java/org/teiid/test/testcases/BaseAbstractTransactionTestCase.java
===================================================================
---
trunk/test-integration/db/src/test/java/org/teiid/test/testcases/BaseAbstractTransactionTestCase.java 2009-11-25
15:29:33 UTC (rev 1592)
+++
trunk/test-integration/db/src/test/java/org/teiid/test/testcases/BaseAbstractTransactionTestCase.java 2009-11-25
15:29:54 UTC (rev 1593)
@@ -4,13 +4,10 @@
import org.teiid.test.framework.ConfigPropertyLoader;
import org.teiid.test.framework.TransactionContainer;
-import org.teiid.test.framework.exception.TransactionRuntimeException;
public abstract class BaseAbstractTransactionTestCase extends TestCase {
- protected ConfigPropertyLoader config = null;
protected TransactionContainer container = null;
- protected boolean setupData = true;
public BaseAbstractTransactionTestCase(String name) {
super(name);
@@ -19,22 +16,27 @@
}
protected abstract TransactionContainer getTransactionContainter();
+
+
+ @Override
+ protected void setUp() throws Exception {
+ // TODO Auto-generated method stub
+ super.setUp();
+ }
- protected ConfigPropertyLoader getConfig() {
- return this.config;
+ @Override
+ protected void tearDown() throws Exception {
+ // TODO Auto-generated method stub
+ super.tearDown();
+
}
+
protected void addProperty(String key, String value) {
- if (config == null) {
- try {
- setUp();
- } catch (Exception e) {
- // TODO Auto-generated catch block
- throw new TransactionRuntimeException(e);
- }
- }
- config.setProperty(key, value);
+
+ ConfigPropertyLoader.getInstance().setProperty(key, value);
+
}
Show replies by date