Libraryless. Click here for Pure Java version (6398L/36K).
1 | scope test_structure_IPersistenceInfo |
2 | |
3 | set flag structure_debug. |
4 | |
5 | sclass #Blubb is IPersistenceInfo { |
6 | S a = "aa", b = "bb"; |
7 | |
8 | public Map _persistenceInfo() { ret litmap("a", false); } |
9 | } |
10 | |
11 | svoid test_structure_IPersistenceInfo() { |
12 | S blubb = shortClassName(Blubb); |
13 | |
14 | // only b is serialized according to _persistenceInfo() |
15 | assertEqualsVerbose(blubb + [[(b="bb")]], structure(new Blubb)); |
16 | } |
Began life as a copy of #1031526
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034592 |
Snippet name: | test_structure_IPersistenceInfo |
Eternal ID of this version: | #1034592/1 |
Text MD5: | 857ea4b43d9f4cf077cf9596aa887d82 |
Transpilation MD5: | d585b07a9494233c27215c46b5d5f07d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-19 08:03:58 |
Source code size: | 413 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 180 / 251 |
Referenced in: | [show references] |