changed the XQUERY to mirror the change in the code

This commit is contained in:
Miriam Baglioni 2020-08-11 16:00:33 +02:00
parent 37ad2f28e9
commit 7e81a17068
1 changed files with 9 additions and 7 deletions

View File

@ -23,6 +23,8 @@ public class QueryInformationSystemTest {
private static final String XQUERY = "for $x in collection('/db/DRIVER/ContextDSResources/ContextDSResourceType') " private static final String XQUERY = "for $x in collection('/db/DRIVER/ContextDSResources/ContextDSResourceType') "
+ +
" where $x//CONFIGURATION/context[./@type='community' or ./@type='ri'] " + " where $x//CONFIGURATION/context[./@type='community' or ./@type='ri'] " +
" and ($x//context/param[./@name = 'status']/text() = 'manager' or $x//context/param[./@name = 'status']/text() = 'all') "
+
" return " + " return " +
"<community> " + "<community> " +
"{$x//CONFIGURATION/context/@id}" + "{$x//CONFIGURATION/context/@id}" +