@@ -0,0 +1,2808 @@
+/*%0A * Copyright 2008-2013 Microarray Informatics Team, EMBL-European Bioinformatics Institute%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *%0A *%0A * For further details of the Gene Expression Atlas project, including source code,%0A * downloads and documentation, please see:%0A *%0A * http://gxa.github.com/gxa%0A */%0A%0Apackage uk.ac.ebi.atlas.widget;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport uk.ac.ebi.atlas.acceptance.selenium.fixture.SeleniumFixture;%0Aimport uk.ac.ebi.atlas.acceptance.selenium.pages.HeatmapTableWidgetPage;%0A%0Aimport static org.hamcrest.CoreMatchers.endsWith;%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.hasSize;%0Aimport static org.hamcrest.Matchers.startsWith;%0Aimport static org.hamcrest.core.StringContains.containsString;%0A%0Apublic class HeatmapWidgetControllerMultiSpeciesExperimentSIT extends SeleniumFixture %7B%0A%0A    private static final String GENE_IN_MULTI_SPECIES_EXPERIMENT = %22ENSGALG00000006591%22;%0A%0A    private HeatmapTableWidgetPage heatmapTablePage;%0A%0A    @Before%0A    public void initPage()%7B%0A        heatmapTablePage = new HeatmapTableWidgetPage(driver, %22geneQuery=%22 + GENE_IN_MULTI_SPECIES_EXPERIMENT + %22&propertyType=bioentity_identifier%22);%0A        heatmapTablePage.get();%0A    %7D%0A%0A    @Test%0A    public void header() %7B%0A        assertThat(heatmapTablePage.getAnatomogram().isDisplayed(), is(true));%0A        assertThat(heatmapTablePage.getGeneCount(), containsString(%22of 1%22));%0A%0A        String experimentDescription = heatmapTablePage.getExperimentDescription();%0A        assertThat(experimentDescription, startsWith(%22RNA-seq of poly-A enriched total RNA of brain, liver, kidney, heart and skeletal muscle samples from 5 vertebrate species: mouse, chicken, frog, lizard and pufferfish%22));%0A%0A        String experimentDescriptionLink = heatmapTablePage.getExperimentDescriptionLink();%0A        assertThat(experimentDescriptionLink, endsWith(%22/experiments/E-GEOD-41338?geneQuery=ENSGALG00000006591&serializedFilterFactors=ORGANISM:Gallus%2520gallus%22));%0A    %7D%0A%0A    @Test%0A    public void heatmap() %7B%0A        assertThat(heatmapTablePage.getGeneNames(), hasSize(1));%0A%0A        String firstGeneName = heatmapTablePage.getGeneNames().get(0);%0A        assertThat(firstGeneName, is(%22TNNI2%22));%0A    %7D%0A%0A%7D%0A

add test