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

3
LINES

< > BotCompany Repo | #1011426 // assertCollectionContents - assert collection contents (disregarding order)

JavaX fragment (include)

static void assertCollectionContents(Collection expected, Collection real) {
  assertEquals(new HashSet(expected), new HashSet(real));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011426
Snippet name: assertCollectionContents - assert collection contents (disregarding order)
Eternal ID of this version: #1011426/2
Text MD5: 3aef6e17b8d055e1c075e393b04cc05f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-29 01:48:29
Source code size: 138 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 448 / 492
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011471 - assertSize - assert collection size