Example #1
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 #2
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");
 }