1818
1919import com .marklogic .client .io .Format ;
2020import com .marklogic .client .test .junit5 .RequiresML11 ;
21+ import com .marklogic .client .test .junit5 .RequiresML11OrLower ;
2122import com .marklogic .client .type .ServerExpression ;
2223import org .junit .jupiter .api .Test ;
2324import org .junit .jupiter .api .extension .ExtendWith ;
2425
2526// IMPORTANT: Do not edit. This file is generated.
2627// Exception - some of these tests cannot pass on ML <= 10. Those have been modified to not run unless ML is >= 11.
28+ // Other tests have been disabled to not run on ML >= 12. Getting those tests to pass would require running the Optic
29+ // code generator workspace on src/main/java, which would then prevent many of the tests from passing on ML <= 11.
2730public class PlanGeneratedTest extends PlanGeneratedBase {
2831
2932 @ Test
@@ -326,6 +329,7 @@ public void testFnFormatTime2Exec() {
326329 executeTester ("testFnFormatTime2" , p .fn .formatTime (p .col ("1" ), p .col ("2" )), false , null , null , null , "10:09:08:00" , new ServerExpression []{ p .xs .time ("10:09:08Z" ), p .xs .string ("[H01]:[m01]:[s01]:[f01]" ) });
327330 }
328331
332+ @ ExtendWith (RequiresML11OrLower .class )
329333 @ Test
330334 public void testFnHead1Exec () {
331335 executeTester ("testFnHead1" , p .fn .head (p .col ("1" )), false , null , null , null , "a" , new ServerExpression []{ p .xs .stringSeq (p .xs .string ("a" ), p .xs .string ("b" ), p .xs .string ("c" )) });
@@ -471,6 +475,7 @@ public void testFnNumber1Exec() {
471475 executeTester ("testFnNumber1" , p .fn .number (p .col ("1" )), false , null , null , null , "1.1" , new ServerExpression []{ p .xs .string ("1.1" ) });
472476 }
473477
478+ @ ExtendWith (RequiresML11OrLower .class )
474479 @ Test
475480 public void testFnPrefixFromQName1Exec () {
476481 executeTester ("testFnPrefixFromQName1" , p .fn .prefixFromQName (p .col ("1" )), false , null , null , Format .JSON , null , new ServerExpression []{ p .xs .QName ("abc" ) });
@@ -1825,6 +1830,7 @@ public void testXsNCName1Exec() {
18251830 executeTester ("testXsNCName1" , p .xs .NCName (p .col ("1" )), false , null , null , null , "a-b-c" , new ServerExpression []{ p .xs .string ("a-b-c" ) });
18261831 }
18271832
1833+ @ ExtendWith (RequiresML11OrLower .class )
18281834 @ Test
18291835 public void testXsNegativeInteger1Exec () {
18301836 executeTester ("testXsNegativeInteger1" , p .xs .negativeInteger (p .col ("1" )), false , null , null , null , "-1" , new ServerExpression []{ p .xs .doubleVal (-1 ) });
@@ -1835,11 +1841,13 @@ public void testXsNMTOKEN1Exec() {
18351841 executeTester ("testXsNMTOKEN1" , p .xs .NMTOKEN (p .col ("1" )), false , null , null , null , "a:b:c" , new ServerExpression []{ p .xs .string ("a:b:c" ) });
18361842 }
18371843
1844+ @ ExtendWith (RequiresML11OrLower .class )
18381845 @ Test
18391846 public void testXsNonNegativeInteger1Exec () {
18401847 executeTester ("testXsNonNegativeInteger1" , p .xs .nonNegativeInteger (p .col ("1" )), false , null , null , null , "0" , new ServerExpression []{ p .xs .string ("0" ) });
18411848 }
18421849
1850+ @ ExtendWith (RequiresML11OrLower .class )
18431851 @ Test
18441852 public void testXsNonPositiveInteger1Exec () {
18451853 executeTester ("testXsNonPositiveInteger1" , p .xs .nonPositiveInteger (p .col ("1" )), false , null , null , null , "0" , new ServerExpression []{ p .xs .string ("0" ) });
@@ -1855,6 +1863,7 @@ public void testXsNumeric1Exec() {
18551863 executeTester ("testXsNumeric1" , p .xs .numeric (p .col ("1" )), false , null , null , null , "1.2" , new ServerExpression []{ p .xs .doubleVal (1.2 ) });
18561864 }
18571865
1866+ @ ExtendWith (RequiresML11OrLower .class )
18581867 @ Test
18591868 public void testXsPositiveInteger1Exec () {
18601869 executeTester ("testXsPositiveInteger1" , p .xs .positiveInteger (p .col ("1" )), false , null , null , null , "1" , new ServerExpression []{ p .xs .doubleVal (1 ) });
0 commit comments