Code Search for Developers
 
 
  

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

iTicket

iTicket is an application for booking specific flights. On a quick-check-in terminal the passenger could easily withdraw the ticket.

Project homepage: http://sourceforge.net/projects/iticket
Programming language(s): Java,JSP,XML
License: lgpl21

  TestConfigurationAdapter.java