From bbd8e5cd915ffd54a5c07b68eb107ef36f1c3347 Mon Sep 17 00:00:00 2001 From: cfmitrah Date: Fri, 8 Dec 2023 20:25:03 +0530 Subject: [PATCH] Added a testcase in createObject() function --- test/functions/createObject.cfc | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/functions/createObject.cfc diff --git a/test/functions/createObject.cfc b/test/functions/createObject.cfc new file mode 100644 index 0000000000..b58fdef334 --- /dev/null +++ b/test/functions/createObject.cfc @@ -0,0 +1,11 @@ +component extends="org.lucee.cfml.test.LuceeTestCase" { + public function run( testResults, testBox ) { + describe( title = "Testcase for createObject() function", body = function() { + it( title = "Checking the createObject() function", body = function( currentSpec ) { + object = createObject('java',"java.lang.StringBuffer") + expect(isObject(object)).toBeTrue(); + expect(object.length()).toBe(0); + }); + }); + } +} \ No newline at end of file