package org.ensembl.healthcheck.testcase.funcgen;

import java.sql.Connection;

import org.ensembl.healthcheck.DatabaseRegistryEntry;
import org.ensembl.healthcheck.ReportManager;

public abstract class AbstractExternalFileUsingTestcase extends AbstractCoreDatabaseUsingTestCase {
	
	protected String getSpeciesAssemblyDataFileBasePath(DatabaseRegistryEntry dbre) {
		
		Connection coreConnection = getCoreDb(dbre).getConnection();
		
		String productionName = getProductionName(coreConnection);
		String assemblyName   = getAssembly(coreConnection);
		String dbFileRootDir  = getDataFileBasePath();
		
		if (dbFileRootDir.equals("")) {
			ReportManager.problem(this, dbre.getConnection(), "datafile_base_path has not been set!");
		}
		String speciesAssemblyDataFileBasePath = dbFileRootDir + "/" + productionName + "/" + assemblyName;
		
		return speciesAssemblyDataFileBasePath;
	}
}

@@ -174,16 +174,178 @@
 nager;%0A%0A
+/**%0A * @author mnuhn%0A * %0A * Abstract class providing method %22getSpeciesAssemblyDataFileBasePath%22. This %0A * can be used to write checks for external files.%0A *%0A */%0A
 public a

Update with some boilerplate comment header