Package net.sf.plugin.soapui.assertion.xsdschema

Examples of net.sf.plugin.soapui.assertion.xsdschema.XsdSchemaComplianceAssertion


  @Before
  public void setUp() throws Exception {
    SoapUI.getSoapUICore();
    SoapUI.getFactoryRegistry();
    assertion = new XsdSchemaComplianceAssertion(TestAssertionConfig.Factory.newInstance(), null);
  }
View Full Code Here


    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());

    XmlObject conf = assertion.createConfiguration();
    String generated = conf.xmlText();
  }
View Full Code Here

    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

Related Classes of net.sf.plugin.soapui.assertion.xsdschema.XsdSchemaComplianceAssertion

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.