Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1031526 // test_structure_transientPersistenceInfo

JavaX fragment (include)

1  
scope test_structure_transientPersistenceInfo
2  
3  
set flag structure_debug.
4  
5  
sclass #Blubb {
6  
  S a = "aa", b = "bb";
7  
  transient Map<S, O> _persistenceInfo = litmap("a", false);
8  
}
9  
10  
svoid test_structure_transientPersistenceInfo() {
11  
  assertEqualsVerbose([[test_structure_transientPersistenceInfo_Blubb(b="bb")]], structure(new Blubb));
12  
  assertEqualsVerbose([[test_structure_transientPersistenceInfo_Blubb(a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := null)));
13  
  assertEqualsVerbose([[test_structure_transientPersistenceInfo_Blubb(a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := litmap("a", true))));
14  
}

Author comment

Began life as a copy of #1017332

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031526
Snippet name: test_structure_transientPersistenceInfo
Eternal ID of this version: #1031526/1
Text MD5: ed12f96f1ff9ddfcbc7753859377c34d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-18 20:03:27
Source code size: 635 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 102 / 126
Referenced in: [show references]