Example #1
0
  @Test
  public void testWorkspaceQualified() throws Exception {
    String queryString =
        "&request=getcoverage&service=wcs&version=1.0.0&format=image/geotiff&bbox=146,-45,147,-42"
            + "&crs=EPSG:4326&width=150&height=150";

    ServletResponse response =
        getAsServletResponse("wcs?sourcecoverage=" + TASMANIA_BM.getLocalPart() + queryString);
    assertTrue(response.getContentType().startsWith("image/tiff"));

    Document dom = getAsDOM("cdf/wcs?sourcecoverage=" + TASMANIA_BM.getLocalPart() + queryString);
    assertEquals("ServiceExceptionReport", dom.getDocumentElement().getNodeName());
  }
Example #2
0
 /** @see javax.faces.context.ExternalContext#getResponseContentType() */
 public String getResponseContentType() {
   return (response.getContentType());
 }