Package com.mockey.plugin

Examples of com.mockey.plugin.RequestInspectorDefinedByJson


        if (scenario.hasMatchArgument()) {
          if (scenario.isMatchStringArgEvaluationRulesFlag()) {

            try {
              RequestInspectorDefinedByJson jsonRulesInspector = new RequestInspectorDefinedByJson(
                  scenario.getMatchStringArg());

              jsonRulesInspector.analyze(request);

              if (jsonRulesInspector.hasAnySuccessForAtLeastOneRuleType()) {

                // No errors, so we have a match.
                indexValue = 1;
                // Capture the number of _valid_ rules successfully processed.
                tempTotalRuleSuccessfulEvaluationCount = jsonRulesInspector.getValidRuleCount();

              } else {
                logger.debug("No match. Reason: " + jsonRulesInspector.getPostAnalyzeResultMessage());
              }

            } catch (JSONException e) {
              String msg = "Unable to parse JSON rules from scenario: " + scenario.getScenarioName();
              logger.debug(msg, e);
View Full Code Here

TOP

Related Classes of com.mockey.plugin.RequestInspectorDefinedByJson

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.