Package com.esri.gpt.junit.cfg

Examples of com.esri.gpt.junit.cfg.CfgAssertionHelper


    }
   
    // handle remaining assertions   
    CfgAssertion[] assertions = action.item.assertions;
    if (succeeded && (assertions != null) && (assertions.length > 0)) {
      CfgAssertionHelper helper = new CfgAssertionHelper();
      OperationContext ctx = handler.getOperationContext();
      String resultXml = ctx.getOperationResponse().getResponseXml();
      if (this.xpath == null) {
        CswNamespaces ns = new CswNamespaces();
        this.xpath = XPathFactory.newInstance().newXPath();
        this.xpath.setNamespaceContext(ns.makeNamespaceContext());
      }
 
      HashMap<String,String> actuals = new HashMap<String,String>();
      actuals.put("serviceProperties.serviceName",
          ctx.getServiceProperties().getServiceName());
      actuals.put("serviceProperties.serviceVersion",
          ctx.getServiceProperties().getServiceVersion());
      actuals.put("operationResponse.outputFormat",
          ctx.getOperationResponse().getOutputFormat());
      actuals.put("transactionOptions.deletionIDs.size",
          ""+ctx.getRequestOptions().getTransactionOptions().getDeletionIDs().size());
     
      helper.processAssertions(action,actuals,resultXml,this.xpath);
    }
   
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.junit.cfg.CfgAssertionHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.