Skip to content

Commit 80e33ac

Browse files
committed
[fix] treat blank test ids as empty
This reinstates the old behaviour where trim + empty was called on id attribute values.
1 parent aaf12e7 commit 80e33ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exist-core/src/main/java/org/exist/test/runner/XMLTestRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private static XMLTestInfo extractTestInfo(final Path path, final Document doc)
142142

143143
private static @Nullable String getIdValue(final Node test) {
144144
final String id = ((Element)test).getAttribute("id");
145-
return id.isEmpty() ? null : id;
145+
return id.isBlank() ? null : id;
146146
}
147147

148148
private static @Nullable String getTaskText(final Node test) {

0 commit comments

Comments
 (0)