package org.aegee.runanddine;

import org.aegee.runanddine.util.data.ConnectionManager;

public abstract class AbstractDbEnabledTest
{
	protected AbstractDbEnabledTest()
	{
		getNewConnectionManager();
	}

	protected ConnectionManager getNewConnectionManager()
	{
		// init MySQL connection
		ConnectionManager cm = new ConnectionManager("localhost", "runanddine", "runanddine", "secret");
		ConnectionManager.setConnection("mysql", cm.getConnection());
		return cm;
	}
}
