首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > A collection of Hamcrest matchers for XML

A collection of Hamcrest matchers for XML

  • 资源大小:23.10 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: ML

资 源 简 介

This project has moved to GitHub at https://github.com/davidehringer/xml-matchers A collection of Hamcrest matchers for XML documents. The matchers include XPath 1.0 and 2.0, schema validation using XML Schema or RelaxNG(experimental), and XML document equivalence. Check out the Tutorial page for a quick overview. XML Matchers allow you to do things like the following. ``` Source xml = ... assertThat(xml, hasXPath("/mountains/mountain")); Node xml = ... assertThat( the(xml), hasXPath("count(/mountains/mountain)", returningANumber(), greaterThanOrEqualTo(2d))); String xml = "K2"; String xmlWithSpaceWrappingText = " K2 "; assertThat(the(xml), isEquivalentTo(the(xmlWithSpaceWrappingText))); Schema schema = w3cXmlSchemaF

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP