Example #1
0
 /**
  * Checks we properly report back the layer is not known to the service
  *
  * @throws Exception
  */
 public void testUnknownLayer() throws Exception {
   MockHttpServletResponse response =
       postAsServletResponse(root(true), loadTextResource("GetDiffUnknown.xml"));
   validate(response);
   Document dom = dom(response);
   // print(dom);
   checkOws10Exception(dom, "InvalidParameterValue", "typeName");
 }
Example #2
0
 /**
  * Checks we properly report back that revision is not known
  *
  * @throws Exception
  */
 public void testFutureRevision() throws Exception {
   MockHttpServletResponse response =
       postAsServletResponse(root(true), loadTextResource("GetDiffFuture.xml"));
   validate(response);
   Document dom = dom(response);
   // print(dom);
   checkOws10Exception(dom, "InvalidParameterValue", "fromVersion");
 }
Example #3
0
 public void testGetMissingId() throws Exception {
   Document dom = getAsDOM(BASEPATH + "?service=csw&version=2.0.2&request=GetRecordById");
   checkOws10Exception(dom, ServiceException.MISSING_PARAMETER_VALUE, "id");
 }