-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f04b1f0
commit 9f80e2a
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
component extends="org.lucee.cfml.test.LuceeTestCase" skip="true" { | ||
|
||
|
||
function run( testResults , testBox ) { | ||
describe( title="Testcase for LDEV-5185", body = function() { | ||
|
||
it(title = "Checking entrySet", body = function( currentSpec ) { | ||
var map=createObject("java","java.util.HashMap"); | ||
map.put("susi","sorglos"); | ||
var it=map.entrySet().iterator(); | ||
while(it.hasNext()) { | ||
var e=it.next(); | ||
expect(e.getKey()).toBe( "susi" ); | ||
expect(e.getValue()).toBe( "sorglos" ); | ||
} | ||
}); | ||
it(title = "Checking keySet", body = function( currentSpec ) { | ||
var map=createObject("java","java.util.HashMap"); | ||
map.put("susi","sorglos"); | ||
var it=map.keySet().iterator(); | ||
while(it.hasNext()) { | ||
expect(it.next()).toBe( "susi" ); | ||
} | ||
}); | ||
it(title = "Checking values", body = function( currentSpec ) { | ||
var map=createObject("java","java.util.HashMap"); | ||
map.put("susi","sorglos"); | ||
var it=map.values().iterator(); | ||
while(it.hasNext()) { | ||
expect(it.next()).toBe( "sorglos" ); | ||
} | ||
}); | ||
|
||
}); | ||
} | ||
} |