Now, in order to validate that file from JUnit, all you have to do is this: assertThat(xml, isValidatedBy(schema));. That's it.
確定! 回上一頁