@@ -4,42 +4,42 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
44 }
55 function run ( testResults , testBox ) {
66 describe (" Testcase for LDEV-3430" , function () {
7- it ( title = " ORMExecuteQuery() with positional argument(hql)" , body = function ( currentSpec ){
7+ it ( title = " ORMExecuteQuery() with positional argument(hql)" , skip = noOrm (), body = function ( currentSpec ){
88 local .result = _InternalRequest (
99 template : " #uri #\test.cfm" ,
1010 forms : { Scene = 1 }
1111 );
1212 expect (trim (result .filecontent )).toBeTrue ();
1313 });
14- it ( title = " ORMExecuteQuery() with positional arguments(hql, params, unique, queryOptions)" , body = function ( currentSpec ){
14+ it ( title = " ORMExecuteQuery() with positional arguments(hql, params, unique, queryOptions)" , skip = noOrm (), body = function ( currentSpec ){
1515 local .result = _InternalRequest (
1616 template : " #uri #\test.cfm" ,
1717 forms : { Scene = 2 }
1818 );
1919 expect (trim (result .filecontent )).toBeTrue ();
2020 });
21- it ( title = " ORMExecuteQuery() with named arguments(hql, params, unique, queryOptions)" , body = function ( currentSpec ){
21+ it ( title = " ORMExecuteQuery() with named arguments(hql, params, unique, queryOptions)" , skip = noOrm (), body = function ( currentSpec ){
2222 local .result = _InternalRequest (
2323 template : " #uri #\test.cfm" ,
2424 forms : { Scene = 3 }
2525 );
2626 expect (trim (result .filecontent )).toBeTrue ();
2727 });
28- it ( title = " ORMExecuteQuery() with named argument(hql)" , body = function ( currentSpec ){
28+ it ( title = " ORMExecuteQuery() with named argument(hql)" , skip = noOrm (), body = function ( currentSpec ){
2929 local .result = _InternalRequest (
3030 template : " #uri #\test.cfm" ,
3131 forms : { Scene = 4 }
3232 );
3333 expect (trim (result .filecontent )).toBeTrue ();
3434 });
35- it ( title = " ORMExecuteQuery() with named arguments(hql, params)" , body = function ( currentSpec ){
35+ it ( title = " ORMExecuteQuery() with named arguments(hql, params)" , skip = noOrm (), body = function ( currentSpec ){
3636 local .result = _InternalRequest (
3737 template : " #uri #\test.cfm" ,
3838 forms : { Scene = 5 }
3939 );
4040 expect (trim (result .filecontent )).toBeTrue ();
4141 });
42- it ( title = " ORMExecuteQuery() with named arguments(hql, params, unique)" , body = function ( currentSpec ){
42+ it ( title = " ORMExecuteQuery() with named arguments(hql, params, unique)" , skip = noOrm (), body = function ( currentSpec ){
4343 local .result = _InternalRequest (
4444 template : " #uri #\test.cfm" ,
4545 forms : { Scene = 6 }
@@ -48,6 +48,10 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
4848 });
4949 });
5050 }
51+ private function noOrm () {
52+ return ( structCount ( server .getTestService (" orm" ) ) eq 0 );
53+ }
54+
5155 private string function createURI (string calledName ){
5256 var baseURI = " /test/#listLast (getDirectoryFromPath (getCurrenttemplatepath ())," \/" ) #/" ;
5357 return baseURI & " " & calledName ;
0 commit comments