Examples of TestAssertionConfig


Examples of com.eviware.soapui.config.TestAssertionConfig

  public void testDirectCreate() throws Exception {
    final String testPath = "C:\\Users\\testuser\\Desktop\\soapui\\XML Schemata\\schema.xsd";
    final String testXPath = "/ns:root/ns:element[2]";
    final boolean testPartial = true;

    TestAssertionConfig config = createConfig(testPath, testXPath, testPartial);
    XsdSchemaComplianceAssertion assertion = new XsdSchemaComplianceAssertion(config, null);

    assertEquals(testPath, assertion.getDefinitionPaths()[0]);
    assertEquals(testXPath, assertion.getRootElementXPath());
    assertTrue(assertion.isPartialValidation());
View Full Code Here

Examples of com.eviware.soapui.config.TestAssertionConfig

  public void testCreateNoXsdDefined() throws Exception {
    final String testPath = null;
    final String testXPath = "/ns:root/ns:element[2]";
    final boolean testPartial = true;
   
    TestAssertionConfig config = createConfig(testPath, testXPath, testPartial);
    XsdSchemaComplianceAssertion assertion = new XsdSchemaComplianceAssertion(config, null);
   
    assertEquals(0, assertion.getDefinitionPaths().length);
    assertEquals(testXPath, assertion.getRootElementXPath());
    assertTrue(assertion.isPartialValidation());
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.