@@ -0,0 +1,2078 @@
+/*%0A * Copyright (C) 2004 EBI, GRL%0A * %0A * This library is free software; you can redistribute it and/or modify it under the terms of the%0A * GNU Lesser General Public License as published by the Free Software Foundation; either version%0A * 2.1 of the License, or (at your option) any later version.%0A * %0A * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without%0A * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU%0A * Lesser General Public License for more details.%0A * %0A * You should have received a copy of the GNU Lesser General Public License along with this library;%0A * if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA%0A * 02111-1307 USA%0A */%0A%0Apackage org.ensembl.healthcheck.testcase.generic;%0A%0Aimport org.ensembl.healthcheck.DatabaseRegistry;%0Aimport org.ensembl.healthcheck.DatabaseType;%0Aimport org.ensembl.healthcheck.testcase.MultiDatabaseTestCase;%0A%0A/**%0A * Check that the seq region table is the same in all necessary databases.%0A */%0Apublic class CoordSystemAcrossSpecies extends MultiDatabaseTestCase %7B%0A%0A    private DatabaseType%5B%5D types = %7BDatabaseType.CORE, DatabaseType.CDNA, DatabaseType.VEGA, DatabaseType.OTHERFEATURES%7D;%0A%0A    /**%0A     * Creates a new instance of CoordSystemAcrossSpecies%0A     */%0A    public CoordSystemAcrossSpecies() %7B%0A%0A        addToGroup(%22release%22);%0A        setDescription(%22Check that the coord_system table is the same across all generic DBs; if not it will cause problems on the website.%22);%0A%0A    %7D%0A%0A    /**%0A     * Make sure that the seq_region tables are all the same.%0A     * %0A     * @param dbr The database registry containing all the specified databases.%0A     * @return True if the seq_region_attrib table is the same across all the species in the%0A     *         registry.%0A     */%0A    public boolean run(DatabaseRegistry dbr) %7B%0A%0A        return checkTableAcrossSpecies(%22coord_system%22, dbr, types, %22All coord_system tables are the same%22, %22coord_system tables are different%22);%0A%0A    %7D // run%0A%0A%7D // CoordSystemAcrossSpecies%0A%0A

Check that coord_system table is the same across all databases for a species.