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

7
LINES

< > BotCompany Repo | #1036531 // test_SynchronizedTypedArrayList (OK)

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

Libraryless. Click here for Pure Java version (11120L/61K).

svoid test_SynchronizedTypedArrayList() {
  var list = new SynchronizedTypedArrayList(S.class);
  list.add("hello");
  assertEqualsVerbose(ll("hello"), list);
  assertException(-> list.add(123));
  assertEqualsVerbose(ll("hello"), list);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036531
Snippet name: test_SynchronizedTypedArrayList (OK)
Eternal ID of this version: #1036531/2
Text MD5: 9d17b43306a225f581247bb7aa1f2401
Transpilation MD5: 32d422aa8eb6dd3b7e3ace3f55285321
Author: stefan
Category: javax / collections
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-01-23 15:10:17
Source code size: 245 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 159 / 209
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)