--- a/src/test/java/org/xmlunit/assertj3/XmlAssertValidationTest.java +++ b/src/test/java/org/xmlunit/assertj3/XmlAssertValidationTest.java @@ -16,6 +16,7 @@ package org.xmlunit.assertj3; import org.junit.ClassRule; import org.junit.Rule; import org.junit.Test; +import org.junit.Ignore; import org.xmlunit.TestResources; import org.xmlunit.validation.Languages; import org.xmlunit.assertj3.util.SetEnglishLocaleRule; @@ -103,7 +104,7 @@ public class XmlAssertValidationTest { .isValidAgainst(xsd); } - @Test + @Test @Ignore public void testIsValidAgainst_withEmptySourcesArray_shouldPass() { StreamSource xml = new StreamSource(new File(TestResources.TEST_RESOURCE_DIR + "BookXsdGenerated.xml")); @@ -112,7 +113,7 @@ public class XmlAssertValidationTest { assertThat(xml).isValidAgainst(new Object[0]); } - @Test + @Test @Ignore public void testIsValidAgainst_withBrokenXmlAndEmptySourcesArray_shouldFail() { thrown.expectAssertionError("1. line=9; column=8; type=ERROR;" + @@ -136,7 +137,7 @@ public class XmlAssertValidationTest { .isValidAgainst(); } - @Test + @Test @Ignore public void testIsValid_shouldPass() { StreamSource xml = new StreamSource(new File(TestResources.TEST_RESOURCE_DIR + "BookXsdGenerated.xml")); @@ -144,7 +145,7 @@ public class XmlAssertValidationTest { assertThat(xml).isValid(); } - @Test + @Test @Ignore public void testIsValid_withBrokenXml_shouldPass() { thrown.expectAssertionError("1. line=9; column=8; type=ERROR;" + @@ -164,7 +165,7 @@ public class XmlAssertValidationTest { assertThat(xml).isInvalid(); } - @Test + @Test @Ignore public void testIsInvalid_shouldFail() { thrown.expectAssertionErrorPattern("^\\RExpecting:\\R <.*" @@ -175,7 +176,7 @@ public class XmlAssertValidationTest { assertThat(xml).isInvalid(); } - @Test + @Test @Ignore public void testIsInvalidUsesCustomFailMessage() { thrown.expectAssertionError("Alarm alarm!");