@@ -0,0 +1,1066 @@
+/**%0A * File: SeqRegionName.java%0A * Created by: dstaines%0A * Created on: Apr 9, 2010%0A * CVS:  $$%0A */%0Apackage org.ensembl.healthcheck.testcase.eg_core;%0A%0Aimport org.ensembl.healthcheck.DatabaseRegistryEntry;%0Aimport org.ensembl.healthcheck.ReportManager;%0A%0A/**%0A * @author dstaines%0A * %0A */%0Apublic class SeqRegionName extends AbstractEgCoreTestCase %7B%0A%0A%09private static final String VALID_NAME = %22%5E%5BA-z0-9:.-%5D+$%22;%0A%0A%09public SeqRegionName() %7B%0A%09%09super();%0A%09%7D%0A%0A%09/*%0A%09 * (non-Javadoc)%0A%09 * %0A%09 * @see%0A%09 * org.ensembl.healthcheck.testcase.AbstractTemplatedTestCase#runTest(org%0A%09 * .ensembl.healthcheck.DatabaseRegistryEntry)%0A%09 */%0A%09@Override%0A%09protected boolean runTest(DatabaseRegistryEntry dbre) %7B%0A%09%09boolean passes = true;%0A%09%09for (String name : getTemplate(dbre).queryForDefaultObjectList(%0A%09%09%09%09%22select name from seq_region%22, String.class)) %7B%0A%09%09%09if (!name.matches(VALID_NAME)) %7B%0A%09%09%09%09ReportManager.problem(this, dbre.getConnection(),%0A%09%09%09%09%09%09%22Seq_region name %22 + name%0A%09%09%09%09%09%09%09%09+ %22 does not match expected expression %22%0A%09%09%09%09%09%09%09%09+ VALID_NAME);%0A%09%09%09%09passes = false;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return passes;%0A%09%7D%0A%7D%0A

check that seq regions are correctly named