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

7
LINES

< > BotCompany Repo | #1036286 // test_unstructureMissingClassObject

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

Transpiled version (12436L) is out of date.

svoid test_unstructureMissingClassObject() {
  S s = [[class("bla.notexistant")]];
  DynamicObject o = cast unstruct(s);
  assertEqualsVerbose(Class.class.getName(), o.className);
  assertEqualsVerbose("bla.notexistant", get name(o));
  assertEqualsVerbose(s, struct(o));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036286
Snippet name: test_unstructureMissingClassObject
Eternal ID of this version: #1036286/3
Text MD5: b72d8c6d3309c271cec6fc9ec37ec266
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-11 17:43:37
Source code size: 279 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 138 / 187
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)