1 | svoid test_restructure_syncMRUCache() { |
2 | new MRUCache o; |
3 | o.maxSize = 5; |
4 | o.put("a", true); |
5 | print(structure(synchronizedMap(o))); |
6 | Map o2 = cast restructure(o); |
7 | assertEqualsVerbose(ll(pair("a", true)), mapToPairs(o2)); |
8 | assertEqualsVerbose(5, ((MRUCache) unwrapSynchronizedMap(o2)).maxSize); |
9 | } |
Began life as a copy of #1024862
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024879 |
Snippet name: | test_restructure_syncMRUCache |
Eternal ID of this version: | #1024879/1 |
Text MD5: | d683cab3aa03eb7eb41bbf753974e38c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-28 12:46:04 |
Source code size: | 310 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 202 / 251 |
Referenced in: | [show references] |