1 /* 2 * Copyright (c) 2003 3 * Information Desire GmbH 4 * All rights reserved. 5 */ 6 package com.infodesire.infobit; 7 8 import junit.framework.TestCase; 9 import junit.framework.TestSuite; 10 11 /*** 12 * base test setup for infobit and related testing - just create fresh instance 13 * of pool and destroy it afterwards 14 * 15 * @author konstantin 16 * @created August 11, 2003 17 * @version $Revision: 1.2 $ 18 */ 19 public abstract class InfobitTestBase extends TestCase { 20 21 InfobitConfiguration _configuration = null; 22 23 24 /*** 25 * Constructor for the InfobitTestBase object 26 * 27 * @param name Description of Parameter 28 */ 29 public InfobitTestBase(String name) { 30 super(name); 31 } 32 33 34 /*** 35 * The JUnit setup method 36 * 37 * @exception Exception Description of Exception 38 */ 39 public void setUp() throws Exception { 40 _configuration = new InfobitConfiguration("infobit-config.xml"); 41 42 } 43 44 45 /*** 46 * The teardown method for JUnit 47 * 48 * @exception Exception Description of Exception 49 */ 50 public void tearDown() throws Exception { 51 _configuration.getPool("pool_one").flush(); 52 _configuration = null; 53 } 54 }

This page was automatically generated by Maven