-
Notifications
You must be signed in to change notification settings - Fork 585
/
SynchronizedDoubleLongMapSerializationTest.java
52 lines (48 loc) · 2.88 KB
/
SynchronizedDoubleLongMapSerializationTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Copyright (c) 2015 Goldman Sachs.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v. 1.0 which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*/
package org.eclipse.collections.impl.map.mutable.primitive;
import org.eclipse.collections.impl.test.Verify;
import org.junit.Test;
public class SynchronizedDoubleLongMapSerializationTest
{
@Test
public void serializedForm()
{
Verify.assertSerializedForm(
1L,
"rO0ABXNyAExvcmcuZWNsaXBzZS5jb2xsZWN0aW9ucy5pbXBsLm1hcC5tdXRhYmxlLnByaW1pdGl2\n"
+ "ZS5TeW5jaHJvbml6ZWREb3VibGVMb25nTWFwAAAAAAAAAAECAAJMAARsb2NrdAASTGphdmEvbGFu\n"
+ "Zy9PYmplY3Q7TAADbWFwdABATG9yZy9lY2xpcHNlL2NvbGxlY3Rpb25zL2FwaS9tYXAvcHJpbWl0\n"
+ "aXZlL011dGFibGVEb3VibGVMb25nTWFwO3hwcQB+AANzcgBEb3JnLmVjbGlwc2UuY29sbGVjdGlv\n"
+ "bnMuaW1wbC5tYXAubXV0YWJsZS5wcmltaXRpdmUuRG91YmxlTG9uZ0hhc2hNYXAAAAAAAAAAAQwA\n"
+ "AHhwdwQAAAAAeA==",
new SynchronizedDoubleLongMap(new DoubleLongHashMap()));
}
@Test
public void keySetSerializedForm()
{
Verify.assertSerializedForm(
1L,
"rO0ABXNyAEhvcmcuZWNsaXBzZS5jb2xsZWN0aW9ucy5pbXBsLn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