New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for BigDecimal comparison for arithmetic assertions #133

Closed
rbkumar88 opened this Issue Aug 10, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@rbkumar88

rbkumar88 commented Aug 10, 2018

Hi,

I see EvaluateXPathMatcher supports only String, it would be better to have an arithmetic comparison/Matcher support so that we can use it with Hamcrest matchers like greaterThan, greaterThanOrEqualTo etc.

Thanks

@bodewig

This comment has been minimized.

Show comment
Hide comment
@bodewig

bodewig Aug 24, 2018

Member

Using the new TypeMatcher you can do stuff like

assertThat(xml, hasXPath("count(//fruits/fruit)", asDouble(equalTo(4.0))));
Member

bodewig commented Aug 24, 2018

Using the new TypeMatcher you can do stuff like

assertThat(xml, hasXPath("count(//fruits/fruit)", asDouble(equalTo(4.0))));
@bodewig

This comment has been minimized.

Show comment
Hide comment
@bodewig

bodewig Aug 27, 2018

Member

2.6.2 has just been released

Member

bodewig commented Aug 27, 2018

2.6.2 has just been released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment