Examples of AssertionError


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

    {
      wsdlContext = ( WsdlContext )getWsdlContext( messageExchange, context );
    }
    catch( Exception e1 )
    {
      throw new AssertionException( new AssertionError( e1.getMessage() ) );
    }

    WsdlValidator validator = new WsdlValidator( wsdlContext );

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

    return "Schema compliance OK";
  }
View Full Code Here

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

    {
      wsdlContext = ( WsdlContext )getWsdlContext( ( WsdlMessageExchange )messageExchange, context );
    }
    catch( Exception e1 )
    {
      throw new AssertionException( new AssertionError( e1.getMessage() ) );
    }
    WsdlValidator validator = new WsdlValidator( wsdlContext );

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

    return "Schema compliance OK";
  }
View Full Code Here

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

    Boolean messageReceived = temp != null ? temp : false;

    Long timeout = ( Long )context.getProperty( HermesJmsRequestTransport.JMS_RECEIVE_TIMEOUT );
    if( messageReceived != null && !messageReceived )
    {
      throw new AssertionException( new AssertionError( "JMS Message timeout error! Message is not received in "
          + timeout + " ms." ) );
    }

    return "JMS Timeout OK";
  }
View Full Code Here

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

      Object result = scriptEngine.run();
      return result == null ? null : result.toString();
    }
    catch( Throwable e )
    {
      throw new AssertionException( new AssertionError( e.getMessage() ) );
    }
    finally
    {
      scriptEngine.clearVariables();
    }
View Full Code Here

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

  {

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

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

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

  {

    if( context.getProperty( JdbcSubmit.JDBC_TIMEOUT ) != null )
    {
      Long timeout = Long.valueOf( context.getProperty( JdbcSubmit.JDBC_TIMEOUT ).toString() );
      throw new AssertionException( new AssertionError( "JDBC Request timeout error! Query not executed in "
          + timeout + " ms." ) );
    }

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

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

    {
      // 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.AssertionError

  {

    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.AssertionError

    {
      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.AssertionError

    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
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.