Skip to content

Commit

Permalink
Added a testcase in createObject() function
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Dec 8, 2023
1 parent 16ed5cf commit bbd8e5c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/functions/createObject.cfc
Original file line number Diff line number Diff line change
@@ -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);
});
});
}
}

0 comments on commit bbd8e5c

Please sign in to comment.