Skip to content

Commit

Permalink
LDEV-4859 test case for create object (6.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed May 18, 2024
1 parent af6af6a commit 78570a5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/tickets/LDEV4859.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
component extends="org.lucee.cfml.test.LuceeTestCase" labels="java" {

function run( testResults , testBox ) {
describe( title='LDEV-4859' , body=function(){
it( title='test createObject' , body=function() {
expect(function(){
var nioPath = createObject("java", "java.nio.file.Paths").get( getTempFile( getTempDirectory(), "ldev4859" ), [] );
var nioAttributes = createObject("java", "java.nio.file.attribute.BasicFileAttributes");
var nioFiles = createObject("java", "java.nio.file.Files");
var fileAttr = nioFiles.readAttributes(nioPath, nioAttributes.getClass(), []);
var created = fileAttr.creationTime().toString();
}).notToThrow();
});
});
}

}

0 comments on commit 78570a5

Please sign in to comment.