@Test(expected = InvalidParameterValueException.class) public void testInvalidVersionParameterInRequest() throws Exception { XmlObject submitDocument = getRequest(REQUEST_INVALID_VERSION); validatingDelegate.validateRequiredVersionParameter(submitDocument); }
protected void validateRequiredVersionParameter(XmlObject requestDocument) throws OwsException { XmlCursor xmlCursor = requestDocument.newCursor(); xmlCursor.toFirstChild(); if (moveToAttribute(xmlCursor, "version")) { service.validateVersionParameter(xmlCursor.getTextValue()); } }
XmlValidationDelegate implements RequestDelegationHandler { protected void validateRequiredVersionParameter(XmlObject requestDocument) throws OwsException { XmlCursor xmlCursor = requestDocument.newCursor(); xmlCursor.toFirstChild(); if (moveToAttribute(xmlCursor, "version")) { service.validateVersionParameter(xmlCursor.getTextValue()); } } }
XmlValidationDelegate implements RequestDelegationHandler { protected void validateRequiredVersionParameter(XmlObject requestDocument) throws OwsException { XmlCursor xmlCursor = requestDocument.newCursor(); xmlCursor.toFirstChild(); if (moveToAttribute(xmlCursor, "version")) { service.validateVersionParameter(xmlCursor.getTextValue()); } } XmlValidationDelegate(XmlDelegate toDecorate); }
XmlValidationDelegate implements RequestDelegationHandler { protected void validateRequiredVersionParameter(XmlObject requestDocument) throws OwsException { XmlCursor xmlCursor = requestDocument.newCursor(); xmlCursor.toFirstChild(); if (moveToAttribute(xmlCursor, "version")) { service.validateVersionParameter(xmlCursor.getTextValue()); } } XmlValidationDelegate(XmlDelegate toDecorate); XmlObject delegate(); }
XmlValidationDelegate implements RequestDelegationHandler { protected void validateRequiredVersionParameter(XmlObject requestDocument) throws OwsException { XmlCursor xmlCursor = requestDocument.newCursor(); xmlCursor.toFirstChild(); if (moveToAttribute(xmlCursor, "version")) { service.validateVersionParameter(xmlCursor.getTextValue()); } } XmlValidationDelegate(XmlDelegate toDecorate); XmlObject delegate();  }