Package com.eviware.soapui.model.testsuite

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


    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

    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

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

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

          urls, parameterExposureCheckConfig, assertionErrorList );
    }

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

    return "OK";
  }
View Full Code Here

    {
      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

      SoapUI.logError( e );
    }

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

    return "OK";
  }
View Full Code Here

    {
      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

    }

    protected String internalAssertProperty(TestPropertyHolder source, String propertyName,
                                            MessageExchange messageExchange, SubmitContext context) throws AssertionException {
        if (!XmlUtils.seemsToBeXml(source.getPropertyValue(propertyName))) {
            throw new AssertionException(new AssertionError("Property '" + propertyName
                    + "' has value which is not xml!"));
        }
        return assertContent(source.getPropertyValue(propertyName), context, propertyName);
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.testsuite.AssertionException

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.