Permalink
Browse files

added tests for GetCapabilities without LAYERS

  • Loading branch information...
sypasche
sypasche committed Nov 15, 2007
1 parent 3eb1b27 commit 2237bc69c146fe692f463e2d50661329055f8ee7
Showing with 19 additions and 0 deletions.
  1. +19 −0 owsproxytest/src/com/camptocamp/owsproxy/TestWMS.java
@@ -354,6 +354,25 @@ public void testGetFeatureInfoNoRestriction() {
doTestRequest(TEST, buildQueryString(getGetFeatureInfoDefaultParams(), override), TOMCAT_CRED, SC_OK, false);
}
/**
* Some WMS Client, like ArcMAP, only send the QUERY_LAYERS parameter without a LAYERS parameter.
*
* In such situation, the service should not throw an exception.
*/
public void testGetFeatureInfoNoLayers() {
if(!TESTS_ENABLED)return;
final String TEST = "test_no_restrictions";
Map<String, String> override = new HashMap<String, String>();
override.clear();
Map<String, String> params = getGetFeatureInfoDefaultParams();
params.remove("LAYERS");
doTestRequest(TEST, buildQueryString(params, override), TOMCAT_CRED, SC_OK, false);
}
public void testGetFeatureInfoFeaturecount() {
if(!TESTS_ENABLED)return;

0 comments on commit 2237bc6

Please sign in to comment.