1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
import junit.framework.*; |
22 |
|
static final String k2 = "2"; |
23 |
|
static final String v2 = "b"; |
24 |
|
|
25 |
– |
|
25 |
|
/** |
26 |
|
* A new SimpleEntry(k, v) holds k, v. |
27 |
|
*/ |
40 |
|
assertEquals(v1, s.getValue()); |
41 |
|
} |
42 |
|
|
44 |
– |
|
43 |
|
/** |
44 |
|
* A new SimpleEntry(entry(k, v)) holds k, v. |
45 |
|
*/ |
100 |
|
assertFalse(s2.equals(s)); |
101 |
|
} |
102 |
|
|
105 |
– |
|
103 |
|
/** |
104 |
|
* getValue returns last setValue for SimpleEntry |
105 |
|
*/ |