package uk.ac.ebi.atlas.search;

import com.jayway.restassured.response.Response;
import org.eclipse.jetty.http.HttpStatus;
import org.junit.Test;
import uk.ac.ebi.atlas.acceptance.rest.fixtures.RestAssuredFixture;

import static com.jayway.restassured.RestAssured.get;
import static org.hamcrest.CoreMatchers.containsString;

public class BioentitiesSearchControllerBadRequestSIT extends RestAssuredFixture {

    @Test
    public void geneIdWithUnmatchedQuote_returnsResults(){
        String url = "/query?geneQuery=ENSG00000161547\"";

        Response response = get(url);

        response.then().assertThat().statusCode(HttpStatus.OK_200);
        response.then().assertThat().body(containsString("Expression Atlas results for ENSG00000161547"));
    }

}

@@ -266,64 +266,8 @@
 get;
-%0Aimport static org.hamcrest.CoreMatchers.containsString;
 %0A%0Apu
@@ -588,115 +588,8 @@
 0);%0A
-        response.then().assertThat().body(containsString(%22Expression Atlas results for ENSG00000161547%22));%0A
     

fix test