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

13
LINES

< > BotCompany Repo | #1031528 // test_structure_nonTransientPersistenceInfoInFieldValues

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4415L/27K).

1  
scope test_structure_nonTransientPersistenceInfoInFieldValues
2  
3  
set flag structure_debug.
4  
5  
sclass #Blubb extends DynamicObject {
6  
  S a = "aa", b = "bb";
7  
}
8  
9  
svoid test_structure_nonTransientPersistenceInfoInFieldValues() {
10  
  assertEqualsVerbose([[test_structure_nonTransientPersistenceInfoInFieldValues_Blubb(b="bb", _persistenceInfo=hm{"a"=f})]], structure(nuDyn(Blubb, _persistenceInfo := litmap("a", false)));
11  
  assertEqualsVerbose([[test_structure_nonTransientPersistenceInfoInFieldValues_Blubb(a="aa", b="bb")]], structure(nuDyn(Blubb, _persistenceInfo := null)));
12  
  assertEqualsVerbose([[test_structure_nonTransientPersistenceInfoInFieldValues_Blubb(a="aa", b="bb", _persistenceInfo=hm{"a"=t})]], structure(nuDyn(Blubb, _persistenceInfo := litmap("a", true))));
13  
}

Author comment

Began life as a copy of #1031525

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1031528
Snippet name: test_structure_nonTransientPersistenceInfoInFieldValues
Eternal ID of this version: #1031528/5
Text MD5: b90472cdd1f409d8a75dcdc9016a3cf6
Transpilation MD5: ac288515d908e58670d27cf95881b812
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:15:01
Source code size: 779 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 165 / 240
Version history: 4 change(s)
Referenced in: [show references]