TestConfigurationAdapter.java from iTicket at Krugle
Show TestConfigurationAdapter.java syntax highlighted
package ch.iticket.config;
import junit.framework.TestCase;
/**
* Description of the Class
*
*@author Dennis Hunziker
*/
public class TestConfigurationAdapter extends TestCase {
private IConfigurationAdapter configurationAdapter = null;
// Wird bei InitListener über context parameter gesetzt
// siehe web.xml
private final String CONFIG = "config/config.xml";
public TestConfigurationAdapter(String name) {
super(name);
}
public void testGetDatabaseConfigFile() {
String expectedReturn = "config/torque.properties";
String actualReturn = configurationAdapter.getDatabaseConfigFile();
assertEquals("return value", expectedReturn, actualReturn);
}
protected void setUp() throws Exception {
super.setUp();
configurationAdapter = ConfigurationAdapter.getInstance();
configurationAdapter.initXML(CONFIG);
}
protected void tearDown() throws Exception {
configurationAdapter = null;
super.tearDown();
}
}
See more files for this project here