codjo/codjo-test — pull request #7 by gonnot (2012-09-29 11:03:09+00:00)
Title: Add a new JUnit Matcher for validating a XML text using a XSD

## Context

For unit-testing purpose, we need sometime to validate a generated XML against a XSD, unfortunately codjo-test doesn't contain anything that could help in this task.

## Description

A new JUnit matcher has been added to ```codjo-test-common```.

_Sample 1_: Validating a xml fragment against a XSD
```java
assertThat("", is(xsdCompliantWith(""
+ " "
+ " "
+ "")));
```
_Sample 2_: Ensure that a xml fragment is not valid
```java
assertThat("", is(not(xsdCompliantWith(XSD))));
```