Skip to content

LDEV-5620 test case to verify loading the internal Java class #2576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: 6.2
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added a testcase for LDEV-5620
cfmitrah committed May 23, 2025
commit 40303430a5bb9442f35ca6e90ff7f14c077bc81f
21 changes: 21 additions & 0 deletions test/tickets/LDEV5620.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
component extends = "org.lucee.cfml.test.LuceeTestCase"{

function run( testResults , testBox ) {
describe( "Testcase for LDEV-5620", function() {

it( title = "should load the internal Java class without error", body = function( CurrentSpec ) {
var result = "";
try {
result = createObject("java", "org.mindrot.jbcrypt.BCrypt", expandPath("./LDEV5620/test.jar"));
} catch (any e) {
result = e.message;
}
expect( isObject(result) ).toBeTrue();
var className = result.getClass().getName();
expect( className ).toBe( "org.mindrot.jbcrypt.BCrypt" );
});

});
}

}
Binary file added test/tickets/LDEV5620/test.jar
Binary file not shown.