Examples of AssertionException


Examples of com.eviware.soapui.model.testsuite.AssertionException

    {
      // check manually before resource intensive xpath
      SoapVersion soapVersion = ( ( WsdlMessageExchange )messageExchange ).getOperation().getInterface()
          .getSoapVersion();
      if( SoapUtils.isSoapFault( responseContent, soapVersion ) )
        throw new AssertionException( new AssertionError( "Response is a SOAP Fault" ) );
    }
    catch( Exception e )
    {
      throw new AssertionException( new AssertionError( e.getMessage() ) );
    }

    return "Response is not a SOAP Fault";
  }
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.AssertionException

  {

    Exception exception = ( Exception )context.getProperty( JdbcSubmit.JDBC_ERROR );
    if( exception != null )
    {
      throw new AssertionException( new AssertionError( exception.getMessage() ) );
    }

    return "JDBC Status OK";
  }
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.AssertionException

    try
    {
      AssertionError[] errors = validator.assertRequest( ( WsdlMessageExchange )messageExchange, true );
      if( errors.length > 0 )
        throw new AssertionException( errors );
    }
    catch( AssertionException e )
    {
      throw e;
    }
    catch( Exception e )
    {
      throw new AssertionException( new AssertionError( e.getMessage() ) );
    }

    return "Request Envelope OK";
  }
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.AssertionException

    catch( Throwable e )
    {
      String msg = "XQuery Match Assertion failed for path [" + path + "] : " + e.getClass().getSimpleName() + ":"
          + e.getMessage();

      throw new AssertionException( new AssertionError( msg ) );
    }

    return type + " matches content for [" + path + "]";
  }
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.AssertionException

      }
    }
    String cumulativeError = cumulativeErrorMsg.toString();
    if( !StringUtils.isNullOrEmpty( cumulativeError ) )
    {
      throw new AssertionException( new AssertionError( cumulativeError ) );
    }
  }
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.AssertionException

      }
    }
    String cumulativeError = cumulativeErrorMsg.toString();
    if( !StringUtils.isNullOrEmpty( cumulativeError ) )
    {
      throw new AssertionException( new AssertionError( cumulativeError ) );
    }
  }
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.AssertionException

          urls, parameterExposureCheckConfig, assertionErrorList );
    }

    if( throwExceptionCheckResponse || throwExceptionCheckSeparateHTML )
    {
      throw new AssertionException( assertionErrorList.toArray( new AssertionError[assertionErrorList.size()] ) );
    }

    return "OK";
  }
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.AssertionException

    {
      String statusCode = statusElements[1].trim();
      if( codeList.contains( statusCode ) )
      {
        String message = "Response status code: " + statusCode + " is in invalid list of status codes";
        throw new AssertionException( new AssertionError( message ) );
      }
    }
    else
    {
      throw new AssertionException( new AssertionError( "Status code extraction error! " ) );
    }

    return "OK";
  }
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.AssertionException

      SoapUI.logError( e );
    }

    if( !messages.isEmpty() )
    {
      throw new AssertionException( assertionErrorList.toArray( new AssertionError[assertionErrorList.size()] ) );
    }

    return "OK";
  }
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.AssertionException

    {
      String statusCode = statusElements[1].trim();
      if( !codeList.contains( statusCode ) )
      {
        String message = "Response status code:" + statusCode + " is not in acceptable list of status codes";
        throw new AssertionException( new AssertionError( message ) );
      }
    }
    else
    {
      throw new AssertionException( new AssertionError( "Status code extraction error! " ) );
    }

    return "OK";
  }
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.