Examples of AssertionFailException


Examples of org.eclipse.wst.wsi.internal.core.analyzer.AssertionFailException

          mimeContentsFound = true;
          Input portTypeInput = bindingOperation.getOperation().getInput();
          // If there is no the corresponding wsdl:input in wsdl:portType,
          // the assertion failed
          if (portTypeInput == null)
            throw new AssertionFailException(
              "There is no the corresponging wsdl:input in the wsdl:portType"
              + " operation for the wsdl:input of the \""
              + bindingOperation.getName() + "\" binding operation.");

          // If the wsdl:portType input does not reference any wsdl:message,
          // the assertion failed
          if (portTypeInput.getMessage() == null)
            throw new AssertionFailException("The wsdl:input of the \""
              + bindingOperation.getOperation().getName() + "\" wsdl:portType "
              + "operation does not reference any wsdl:message.");

          // Getting the part name that is not specified in the wsdl:message
          // the input of wsdl:portType refers to
          String part = getInvalidMimeContentPart(
            inputMimeContents, portTypeInput.getMessage());

          // If such part is found, the assertion failed
          if (part != null)
            throw new AssertionFailException("part=\"" + part +
              "\", the input of the binding operation \""
              + bindingOperation.getName() + "\"");
        }

        // If the wsdl:output contains mime:content elements
        if (!outputMimeContents.isEmpty())
        {
          mimeContentsFound = true;
          Output portTypeOutput = bindingOperation.getOperation().getOutput();
          // If there is no the corresponding wsdl:input in wsdl:portType,
          // the assertion failed
          if (portTypeOutput == null)
            throw new AssertionFailException(
              "There is no the corresponging wsdl:output in the wsdl:portType"
              + " operation for the wsdl:output of the \""
              + bindingOperation.getName() + "\" binding operation.");

          // If the wsdl:portType output does not reference any wsdl:message,
          // the assertion failed
          if (portTypeOutput.getMessage() == null)
            throw new AssertionFailException("The wsdl:output of the \""
              + bindingOperation.getOperation().getName() + "\" wsdl:portType "
              + "operation does not reference any wsdl:message.");

          // Getting the part name that is not specified in the wsdl:message
          // the output of wsdl:portType refers to
          String part = getInvalidMimeContentPart(
              outputMimeContents, portTypeOutput.getMessage());

          // If such part is found, the assertion failed
          if (part != null)
            throw new AssertionFailException("part=\"" + part +
                "\", the output of the binding operation \""
                + bindingOperation.getName() + "\"");
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.