Skip to content

Commit 17c66e7

Browse files
committed
[test] add ignore reasons
1 parent 4ec5dec commit 17c66e7

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

exist-core/src/test/java/org/exist/xquery/XQueryTest.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public class XQueryTest {
149149
return document { $doc }\s
150150
};\
151151
""";
152-
152+
153153
private static final String fatherModule =
154154
"""
155155
module namespace foo="foo";
@@ -1872,7 +1872,7 @@ public void xupdateWithAdjacentTextNodes() throws XMLDBException {
18721872

18731873
//TODO : understand this test and make sure that the expected result is correct
18741874
//expected:<3> but was:<2>
1875-
@Ignore
1875+
@Ignore("make sure that the expected result is correct")
18761876
@Test
18771877
public void xupdateAttributesAndElements() throws XMLDBException {
18781878
ResourceSet result;
@@ -1986,7 +1986,7 @@ public void attribute_1691177() throws XMLDBException {
19861986
*/
19871987
@Test
19881988
public void attribute_1691174() throws XMLDBException {
1989-
String query = "declare function local:show($el1, $el2) { "
1989+
String query = "declare function local:show($el1, $el2) { "
19901990
+ " <Foobar> "
19911991
+ " { (\"first: \", $el1, \" second: \", $el2) } "
19921992
+ " </Foobar> " + "}; "
@@ -2297,7 +2297,7 @@ public void wrongInvalidTypeError_1787285() throws XMLDBException {
22972297
*
22982298
* Same as {@link #asDouble_1840775()}
22992299
*/
2300-
@Ignore
2300+
@Ignore("#asDouble_1840775()")
23012301
@Test
23022302
public void wrongAttributeTypeCheck_1805612() throws XMLDBException {
23032303

@@ -2438,7 +2438,7 @@ public void stringOfEmptySequence_1841105() throws XMLDBException {
24382438
/**
24392439
* @see http://sourceforge.net/support/tracker.php?aid=2871975
24402440
*/
2441-
@Ignore
2441+
@Ignore("http://sourceforge.net/support/tracker.php?aid=2871975")
24422442
@Test
24432443
public void stringOfEmptySequenceWithExplicitContext_2871975() throws XMLDBException {
24442444

@@ -2481,7 +2481,7 @@ public void constructTextNodeWithEmptyString_1970717() throws XMLDBException {
24812481
/**
24822482
* @see http://sourceforge.net/support/tracker.php?aid=1848497
24832483
*/
2484-
@Ignore
2484+
@Ignore("http://sourceforge.net/support/tracker.php?aid=1848497")
24852485
@Test
24862486
public void attributeNamespaceDeclaration_1848497() throws XMLDBException {
24872487
String query = "declare namespace foo = \"foo\";" +
@@ -2536,11 +2536,11 @@ public void cardinalityAttributeNamespace_1884360() throws XMLDBException {
25362536
public void currentDateTimeInModules_1894009() throws XMLDBException {
25372537
String module = """
25382538
module namespace dt = "dt";
2539-
2539+
25402540
declare function dt:fib($n) {
25412541
if ($n < 2) then $n else dt:fib($n - 1) + dt:fib($n - 2)\s
25422542
};
2543-
2543+
25442544
declare function dt:dateTime() {
25452545
(: Do something time consuming first. :) \s
25462546
let $a := dt:fib(25)\
@@ -2646,7 +2646,7 @@ public void xpty0018_MixNodesAtomicValues_2003042() throws XMLDBException {
26462646
assertEquals(query, "<a>2<b/></a>", //checked with saxon
26472647
result.getResource(0).getContent().toString());
26482648
}
2649-
2649+
26502650
/**
26512651
* @see http://sourceforge.net/support/tracker.php?aid=1816496
26522652
*/
@@ -2725,7 +2725,7 @@ public void divErrorArgVariable2() throws XMLDBException {
27252725
assertEquals(query, "2", result.getResource(0).getContent().toString());
27262726

27272727
}
2728-
2728+
27292729
/**
27302730
* @see http://sourceforge.net/support/tracker.php?aid=1841635
27312731
*/
@@ -2734,7 +2734,7 @@ public void resolveBaseURI_1841635() throws XMLDBException {
27342734
String xmldoc = "<Root><Node1><Node2><Node3></Node3></Node2></Node1></Root>";
27352735

27362736
XPathQueryService service = storeXMLStringAndGetQueryService("baseuri.xml", xmldoc);
2737-
2737+
27382738
String query="doc('/db/test/baseuri.xml')/Root/Node1/base-uri()";
27392739

27402740

@@ -2911,7 +2911,7 @@ public void replaceBug_2903815() throws XMLDBException {
29112911
*
29122912
* Same as {@link #wrongAttributeTypeCheck_1805612()}
29132913
*/
2914-
@Ignore
2914+
@Ignore("#wrongAttributeTypeCheck_1805612()")
29152915
@Test
29162916
public void asDouble_1840775() throws XMLDBException {
29172917
String query = "declare function local:testCase($failure as element(Failure)?)"

exist-core/src/test/java/org/exist/xquery/value/AnyURITest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ public void fullyEscapedStringToURI() throws XPathException {
5151
assertEquals(anyUri.toURI(),uri);
5252
}
5353

54-
/**
55-
* TODO: change AnyURIValue to directly store the escaped value?
56-
*/
57-
@Ignore
58-
@Test
59-
public void partiallyEscapedStringToXmldbURI() throws XPathException {
54+
/**
55+
* TODO: change AnyURIValue to directly store the escaped value?
56+
*/
57+
@Ignore("change AnyURIValue to directly store the escaped value")
58+
@Test
59+
public void partiallyEscapedStringToXmldbURI() throws XPathException {
6060
String escaped = TestConstants.SPECIAL_NAME.replaceAll("%20"," ").replaceAll("%C3%A0","\u00E0");
6161
AnyURIValue anyUri = new AnyURIValue(escaped);
6262
assertEquals(anyUri.toXmldbURI(), TestConstants.SPECIAL_URI);

0 commit comments

Comments
 (0)