Permalink
Browse files

Change all test setUp() methods to throw exception

  • Loading branch information...
1 parent e7ece08 commit 1681799712e13eedc420dc5e248cd6280a43bf55 Colin Jarvis committed Feb 28, 2012
@@ -174,7 +174,7 @@ protected ConfigTestBase(String name) {
}
@Override
- public void setUp() {
+ protected void setUp() throws Exception {
super.setUp();
try {
getController().getConfig().loadParameterOverrides(getTestConfig());
@@ -105,7 +105,7 @@ protected TestBase(String name) {
}
@Override
- protected void setUp() {
+ protected void setUp() throws Exception {
// reset binding
this.binding = null;
@@ -61,7 +61,7 @@ public DatabaseTest(String name) {
* @see junit.framework.TestCase#setUp()
*/
@Override
- public void setUp() throws IOException {
+ protected void setUp() throws Exception {
super.setUp();
DatabaseTestUtil.createTable(getController(), "dataloader");
@@ -58,7 +58,7 @@ public MappingTest(String name) {
private Map<String, Object> sourceValueMap;
@Override
- public void setUp() {
+ protected void setUp() throws Exception {
super.setUp();
sourceValueMap = new HashMap<String, Object>();
@@ -79,7 +79,7 @@ public DatabaseProcessTest(String name, Map<String, String> config) {
* @see junit.framework.TestCase#setUp()
*/
@Override
- public void setUp() {
+ protected void setUp() throws Exception {
super.setUp();
DatabaseTestUtil.createTable(getController(), "dataloader");
@@ -71,7 +71,7 @@ protected ProcessTestBase(String name) {
private static Logger logger = Logger.getLogger(TestBase.class);
@Override
- public void setUp() {
+ protected void setUp() throws Exception {
super.setUp();
cleanRecords();
}

0 comments on commit 1681799

Please sign in to comment.