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)

scope test_structure_transientPersistenceInfo

set flag structure_debug.

sclass #Blubb {
  S a = "aa", b = "bb";
  transient Map<S, O> _persistenceInfo = litmap("a", false);
}

svoid test_structure_transientPersistenceInfo() {
  assertEqualsVerbose([[test_structure_transientPersistenceInfo_Blubb(b="bb")]], structure(new Blubb));
  assertEqualsVerbose([[test_structure_transientPersistenceInfo_Blubb(a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := null)));
  assertEqualsVerbose([[test_structure_transientPersistenceInfo_Blubb(a="aa", b="bb")]], structure(nu(Blubb, _persistenceInfo := litmap("a", true))));
}

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: 160 / 184
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1034592 - test_structure_IPersistenceInfo